Skip to content

Instantly share code, notes, and snippets.

@jfeng702
Created November 13, 2017 07:38
Show Gist options
  • Save jfeng702/be9969b02aa1ccbe5c60678481332ae5 to your computer and use it in GitHub Desktop.
Save jfeng702/be9969b02aa1ccbe5c60678481332ae5 to your computer and use it in GitHub Desktop.
```ruby
#ex1
my_neat_method(thing1, thing2, banana)
#ex2
my_arg_array = [thing1, thing2, banana]
my_neat_method(*my_arg_array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment