Skip to content

Instantly share code, notes, and snippets.

@filipebarcos
Created October 5, 2016 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipebarcos/e6008e3cc0cbdcf610723c00ccde1e4d to your computer and use it in GitHub Desktop.
Save filipebarcos/e6008e3cc0cbdcf610723c00ccde1e4d to your computer and use it in GitHub Desktop.
def dragon(name)
-> (size) {
-> (element) {
"#{name} is a #{size} dragon that breathes #{element}!"
}
}
end
puts dragon("Karo").("large").("ice")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment