P
Peter Alvin
If I pass an options hash into a def, how do I easily check to see if an
option is set? This is how I'm doing it now:
if options.key?some_option)
...
end
Knowing Ruby, there's got to be a cleaner/better way!
Pete
option is set? This is how I'm doing it now:
if options.key?some_option)
...
end
Knowing Ruby, there's got to be a cleaner/better way!
Pete