lib/datte/dattetime.rb in datte-0.3.0 vs lib/datte/dattetime.rb in datte-0.4.0
- old
+ new
@@ -88,5 +88,11 @@
class MatchData
def matched?(key)
self.names.include?(key.to_s)
end
end
+
+class Hash
+ def matched?(key)
+ self.keys.include?(key)
+ end
+end