Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foo(name = 1, bar)
- p name
- p bar
- end
- def foo2(bar, name = 1)
- p name
- p bar
- end
- foo('a')
- # => 1
- # => "a"
- foo2('a')
- # => 1
- # => "a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement