diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ostruct.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ostruct.rb b/lib/ostruct.rb index 417ecf62b3..1d42321b66 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -71,9 +71,6 @@ # of these properties compared to using a Hash or a Struct. # class OpenStruct - class << self # :nodoc: - alias allocate new - end # # Creates a new OpenStruct object. By default, the resulting OpenStruct @@ -191,7 +188,7 @@ class OpenStruct def respond_to_missing?(mid, include_private = false) mname = mid.to_s.chomp("=").to_sym - @table.key?(mname) || super + @table&.key?(mname) || super end def method_missing(mid, *args) # :nodoc: |