From 37ab9f4bcdc91f76964d21e8f112c19ba2cda9b7 Mon Sep 17 00:00:00 2001 From: Jeff Manian Date: Mon, 25 Nov 2019 11:38:30 -0500 Subject: update comment for Mash truthiness methods --- lib/hashie/mash.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (=): Sets the attribute of the given method name. - # * Existence (?): Returns true or false depending on whether that key has been set. + # * Truthiness (?): Returns true or false depending on the truthiness of + # the attribute, or false if the key is not set. # * Bang (!): Forces the existence of this key, used for deep Mashes. Think of it # as "touch" for mashes. # * Under Bang (_): Like Bang, but returns a new Mash rather than creating a key. -- cgit v1.2.1