Skip to content

Instantly share code, notes, and snippets.

@laginha87
Created May 2, 2018 18:19
Show Gist options
  • Save laginha87/9cb57def37e0cbdfe2dcb3d84416c26c to your computer and use it in GitHub Desktop.
Save laginha87/9cb57def37e0cbdfe2dcb3d84416c26c to your computer and use it in GitHub Desktop.
meta ruby
def method_missing(name, *args)
args.reduce {|a,b| a + b }
end
puts(sum 1,2,3,4,5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment