mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress a warning in Psych&YAML with verbose mode
This commit is contained in:
parent
c8a891d1aa
commit
a7b68e63c5
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class OpenStruct
|
|||
|
||||
def respond_to_missing?(mid, include_private = false) # :nodoc:
|
||||
mname = mid.to_s.chomp("=").to_sym
|
||||
@table&.key?(mname) || super
|
||||
defined?(@table) && @table.key?(mname) || super
|
||||
end
|
||||
|
||||
def method_missing(mid, *args) # :nodoc:
|
||||
|
|
Loading…
Reference in a new issue