Created
November 28, 2012 15:43
-
-
Save caike/4162063 to your computer and use it in GitHub Desktop.
Tell, Don't Ask.
This file contains hidden or 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 SomeClass | |
def some_method(obj) | |
if obj.foo | |
obj.bar | |
end | |
end | |
end | |
class SomeOtherClass | |
def foo; end | |
def bar; end | |
end |
This file contains hidden or 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 SomeClass | |
def some_method(obj) | |
obj.foo_bar | |
end | |
end | |
class SomeOtherClass | |
def foo_bar | |
if foo | |
bar | |
end | |
end | |
private | |
def foo; end | |
def bar; end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not enough banana