diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2016-04-24 02:17:49 +0900 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2016-06-21 10:56:58 +0200 |
commit | 253c61548214effb11fbfd2a256578fe16d8e2bc (patch) | |
tree | 4078179f94cc6db95d5b90d36d1fcbfc44c69a96 /lib | |
parent | a33422799cc104acf8eb7884c4613a714ccc5da3 (diff) | |
download | json-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.rb | 8 |
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 |