I face a weirb problem with optionals parameters in ruby. This is my code :
def foo options={:test => true} puts options[:test] end foo # => puts true foo :lol => 42 # => puts nil I can not figure out why the second call puts nil. Is seems that putting an other parameter set :test to nil.
Thanks.