aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ostruct.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ostruct.rb')
-rw-r--r--lib/ostruct.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 46c178c489..21bda73c37 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -190,8 +190,8 @@ class OpenStruct
#
def delete_field(name)
sym = name.to_sym
- @table.delete sym
singleton_class.__send__(:remove_method, sym, "#{name}=")
+ @table.delete sym
end
InspectKey = :__inspect_key__ # :nodoc: