summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Manian <jeffrey.manian@gmail.com>2019-11-25 11:38:30 -0500
committerJeff Manian <jeffrey.manian@gmail.com>2019-11-25 11:38:30 -0500
commit37ab9f4bcdc91f76964d21e8f112c19ba2cda9b7 (patch)
tree4a06506fc2ae9e9e1a8da42945651ded3953fa0e
parentd5f253963731f7b2ef96ba415ecad22c89e22d28 (diff)
downloadhashie-37ab9f4bcdc91f76964d21e8f112c19ba2cda9b7.tar.gz
update comment for Mash truthiness methods
-rw-r--r--lib/hashie/mash.rb3
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.