Add aliases for Mash#key? to conform with standard Ruby Hash aliases. #23

Merged
merged 1 commit into from Oct 15, 2011
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Split
View
@@ -104,6 +104,9 @@ def dup
def key?(key)
super(convert_key(key))
end
+ alias_method :has_key?, :key?
+ alias_method :include?, :key?
+ alias_method :member?, :key?
# Performs a deep_update on a duplicate of the
# current mash.