Created
October 5, 2012 01:49
-
-
Save marioidival/3837605 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 Batman | |
def detective? | |
true | |
end | |
def looking_at_sign | |
false | |
end | |
def receive_request_by_gordon! | |
def looking_at_sign; true end | |
end | |
def friend_name | |
"Robin" | |
end | |
def name | |
if Time.now == daylight_time | |
name = "Bruce" | |
elsif Time.now == night_time | |
name = "Batman" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pede ajuda a @brunohenrique. Cola aqui o spec