Skip to content

Instantly share code, notes, and snippets.

@manuelbrunner
Created September 2, 2014 13:10
Show Gist options
  • Save manuelbrunner/414f135eb6c292d13407 to your computer and use it in GitHub Desktop.
Save manuelbrunner/414f135eb6c292d13407 to your computer and use it in GitHub Desktop.
be awesome according to pic
@state = :sad
class TrueClass
def stop
@state = :neutral
end
end
def sad
@state == :sad
end
def beAwesome
puts "Awesome!"
end
# begin original quote
if (sad() === true)
sad().stop();
beAwesome();
end
# end original quote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment