Created
September 26, 2011 23:02
-
-
Save janogonzalez/1243687 to your computer and use it in GitHub Desktop.
Beatles - Love me do (The Ruby Way)
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
# rubytles.rb | |
class I | |
def self.love(s) | |
"I <3 #{s}" | |
end | |
end | |
def love(_, &block) | |
yield "you" | |
end | |
def know(s) | |
puts s | |
end | |
# Beatles loved the Ruby programming language | |
love(:me) do |you| | |
know I.love you | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment