Skip to content

Instantly share code, notes, and snippets.

@Fire-Dragon-DoL
Last active August 29, 2015 14:08
Show Gist options
  • Save Fire-Dragon-DoL/1c4d24ab914f1315a635 to your computer and use it in GitHub Desktop.
Save Fire-Dragon-DoL/1c4d24ab914f1315a635 to your computer and use it in GitHub Desktop.
Ruby bracketless method call flow
#!/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