Skip to content

Commit

Permalink
Suppress a warning in Psych&YAML with verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 10, 2019
1 parent c8a891d commit a7b68e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ostruct.rb
Expand Up @@ -206,7 +206,7 @@ def freeze

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:
Expand Down

0 comments on commit a7b68e6

Please sign in to comment.