mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
generic_object.rb: useless methods
* ext/json/lib/json/generic_object.rb (JSON::GenericObject): remove useless overriding methods, [] and []=. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
57a0021095
commit
c0ee6f2af9
1 changed files with 0 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue