summaryrefslogtreecommitdiff
path: root/lib/hashie/mash.rb
diff options
context:
space:
mode:
authorJonathan Rochkind <jonathan@dnil.net>2015-04-08 10:10:06 -0400
committerdblock <dblock@dblock.org>2015-04-08 18:40:50 -0400
commit61fc9a9cbce3999df515f4f291135b51372789c4 (patch)
treeb3543b6cf5339ffe41550c93644d867f2e0fc1ed /lib/hashie/mash.rb
parent266bb799c6cb07b04268def0b49b8774beb4c9b1 (diff)
downloadhashie-61fc9a9cbce3999df515f4f291135b51372789c4.tar.gz
Removed Mash#id and Mash#type.
Ruby 1.8.7 had Object#id and #type, both of which were deprecated, which Hashie::Mash wanted to cover with more reasonable methods. These methods in Object were removed in ruby 1.9. The cover methods are unneeded, and can cause problems with Mash::SafeAssignment preventing you from using these as keys. Fixes #290
Diffstat (limited to 'lib/hashie/mash.rb')
-rw-r--r--lib/hashie/mash.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/hashie/mash.rb b/lib/hashie/mash.rb
index 1428816..430e615 100644
--- a/lib/hashie/mash.rb
+++ b/lib/hashie/mash.rb
@@ -92,14 +92,6 @@ module Hashie
class << self; alias_method :[], :new; end
- def id #:nodoc:
- self['id']
- end
-
- def type #:nodoc:
- self['type']
- end
-
alias_method :regular_reader, :[]
alias_method :regular_writer, :[]=