Skip to content

Instantly share code, notes, and snippets.

@marioidival
Created October 5, 2012 01:49
Show Gist options
  • Save marioidival/3837605 to your computer and use it in GitHub Desktop.
Save marioidival/3837605 to your computer and use it in GitHub Desktop.
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
@halan
Copy link

halan commented Oct 5, 2012

Pede ajuda a @brunohenrique. Cola aqui o spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment