Module: MAbbre::Patch::ObjectMixin

Defined in:
lib/mabbre/patch/object_mixin/respond_to_missing.rb

Overview

Contains all patches related to the Object class. The methods contained within will only be defined if they are needed.

Instance Method Summary collapse

Instance Method Details

#respond_to?(name, include_all = false) ⇒ Boolean

call-seq:

respond_to?(name, include_all = false) => true or false

Passes name and include_all to super, and if false is returned then #respond_to_missing? will be called.

Returns true if this object responds to name, and false otherwise.

Returns:

  • (Boolean)


18
19
20
# File 'lib/mabbre/patch/object_mixin/respond_to_missing.rb', line 18

def respond_to?(name, include_all = false)
  super or respond_to_missing?(name, include_all)
end