I would strongly advocate using the Hash#fetch method in general:

options.fetch(:length, 30)

Though it's worth noting it gives different results than the || idiom
for nil and false hash values.

-- donald

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to