Last active
August 29, 2015 14:08
-
-
Save Fire-Dragon-DoL/1c4d24ab914f1315a635 to your computer and use it in GitHub Desktop.
Ruby bracketless method call flow
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
#!/usr/bin/env ruby | |
def hi(str) | |
puts str.to_s | |
puts "hi" | |
end | |
def i(str) | |
puts str.to_s | |
"i" | |
end | |
def am(str) | |
puts str.to_s | |
"am" | |
end | |
def francesco | |
"francesco" | |
end | |
hi i am francesco | |
# => | |
# francesco | |
# am | |
# i | |
# hi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment