diff options
Diffstat (limited to 'lib/hashie')
-rw-r--r-- | lib/hashie/mash.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb index 7c916fa..f832e98 100644 --- a/lib/hashie/mash.rb +++ b/lib/hashie/mash.rb @@ -16,7 +16,8 @@ module Hashie # # * No punctuation: Returns the value of the hash for that key, or nil if none exists. # * Assignment (<tt>=</tt>): Sets the attribute of the given method name. - # * Existence (<tt>?</tt>): Returns true or false depending on whether that key has been set. + # * Truthiness (<tt>?</tt>): Returns true or false depending on the truthiness of + # the attribute, or false if the key is not set. # * Bang (<tt>!</tt>): Forces the existence of this key, used for deep Mashes. Think of it # as "touch" for mashes. # * Under Bang (<tt>_</tt>): Like Bang, but returns a new Mash rather than creating a key. |