1
0
Fork 0
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:
Nobuyoshi Nakada 2019-05-10 12:48:43 +09:00
parent c8a891d1aa
commit a7b68e63c5
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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: