Module: Ardm::Property::Lookup

Defined in:
lib/ardm/property/lookup.rb

Instance Method Summary collapse

Instance Method Details

#const_missing(name) ⇒ Property

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Provides transparent access to the Properties defined in Ardm::Property.

Parameters:

  • name (Symbol)

    The name of the property to lookup.

Returns:

  • (Property)

    The property with the given name.

Raises:

  • (NameError)

    The property could not be found.

Since:

  • 1.0.1



23
24
25
# File 'lib/ardm/property/lookup.rb', line 23

def const_missing(name)
  Property.find_class(name.to_s) || super
end