Arguments Of Methods With Easy Default Setting
Join the DZone community and get the full member experience.
Join For Free
def my_method(opts={})
{:arg_one => 'foo', :arg_two => 'two'}.merge!(opts)
end
Opinions expressed by DZone contributors are their own.
Comments