-
-
Save yxhuvud/f9fc14095b07ce33f2650a592757d307 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 foo=(other) | |
p other | |
end | |
def foo | |
p :what | |
end | |
end | |
f = Foo.new | |
f.foo ||= 43 | |
=> :what |
Author
yxhuvud
commented
Jul 1, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment