diff options
author | Daniel Doubrovkine (dB.) @dblockdotorg <dblock@dblock.org> | 2019-11-25 12:11:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 12:11:14 -0500 |
commit | 9c6b5c860aa77bdfaaf416c5c098536b7e2eed5c (patch) | |
tree | 4a06506fc2ae9e9e1a8da42945651ded3953fa0e | |
parent | d5f253963731f7b2ef96ba415ecad22c89e22d28 (diff) | |
parent | 37ab9f4bcdc91f76964d21e8f112c19ba2cda9b7 (diff) | |
download | hashie-9c6b5c860aa77bdfaaf416c5c098536b7e2eed5c.tar.gz |
Merge pull request #502 from jmanian/master
update comment for Mash truthiness methods
-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. |