class Oj::Bag

def respond_to?(m)

Returns:
  • (Boolean) - true for any method that matches an instance

Parameters:
  • m (Symbol) -- method symbol
def respond_to?(m)
  return true if super
  instance_variables.include?(:"@#{m}")
end