summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2016-04-24 02:17:49 +0900
committerFlorian Frank <flori@ping.de>2016-06-21 10:56:58 +0200
commit253c61548214effb11fbfd2a256578fe16d8e2bc (patch)
tree4078179f94cc6db95d5b90d36d1fcbfc44c69a96 /lib
parenta33422799cc104acf8eb7884c4613a714ccc5da3 (diff)
downloadjson-253c61548214effb11fbfd2a256578fe16d8e2bc.tar.gz
Remove useless methods
Remove useless overriding methods, [] and []=, which are same as OpenStruct.
Diffstat (limited to 'lib')
-rw-r--r--lib/json/generic_object.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/json/generic_object.rb b/lib/json/generic_object.rb
index 8b8fd53..3a14f0e 100644
--- a/lib/json/generic_object.rb
+++ b/lib/json/generic_object.rb
@@ -47,14 +47,6 @@ module JSON
table
end
- def [](name)
- table[name.to_sym]
- end
-
- def []=(name, value)
- __send__ "#{name}=", value
- end
-
def |(other)
self.class[other.to_hash.merge(to_hash)]
end