Method: Aspire::Object::ResourcePropertyMixin#respond_to_missing?

Defined in:
lib/aspire/object/resource.rb

#respond_to_missing?(method_name, include_all = false) ⇒ Boolean

Returns true if this method is supported, false if not

Parameters:

  • method_name (Symbol)

    the method name

  • include_all (Boolean) (defaults to: false)

    if true, include private/protected methods

Returns:

  • (Boolean)

    true if the method is supported, false otherwise



61
62
63
64
65
# File 'lib/aspire/object/resource.rb', line 61

def respond_to_missing?(method_name, include_all = false)
  property_name = get_property_name_from_method(method_name, include_all)
  # property_name is not nil if the method is supported
  !property_name.nil?
end