Class: H2o::DataObject

Inherits:
Object show all
Defined in:
lib/h2o/context.rb

Direct Known Subclasses

BlockContext, Filters::Base

Constant Summary collapse

INTERNAL_METHOD =
/^__/
@@required_methods =
[:__send__, :__id__, :object_id, :respond_to?, :extend, :methods, :class, :nil?, :is_a?, :to_h2o, :respond_to_missing?]

Instance Method Summary collapse

Instance Method Details

#respond_to?(method) ⇒ Boolean

Returns:

  • (Boolean)


116
117
118
119
120
121
# File 'lib/h2o/context.rb', line 116

def respond_to?(method)
  method_name = method.to_s
  return false if method_name =~ INTERNAL_METHOD
  return false if @@required_methods.include?(method_name)
  super
end