Created
May 8, 2017 01:12
-
-
Save wethu/a44249492b965b5d08caa8553b6d1690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def initialize(bar) | |
@bar = bar | |
end | |
def bar | |
@bar | |
end | |
end | |
def Foo(bar) | |
Foo.new(bar) | |
end | |
Foo("this").bar | |
# => "this" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment