Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FOO_DEFAULTS = {
- :i => 666,
- :some_other_value => false,
- }.freeze
- def foo(args)
- v = FOO_DEFAULTS.merge(args)
- @i = v[:i]
- @some_other_value = v[:some_other_value]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement