Sha256: ef6d7238dbc51ec74e945d103c8a8dcd44c813aad6acf79d769744f88e43cda8

Contents?: true

Size: 618 Bytes

Versions: 15

Compression:

Stored size: 618 Bytes

Contents

require 'ardm/property'

module Ardm
  class Property
    module Lookup

      # Provides transparent access to the Properties defined in
      # {Property}.
      #
      # @param [Symbol] name
      #   The name of the property to lookup.
      #
      # @return [Property]
      #   The property with the given name.
      #
      # @raise [NameError]
      #   The property could not be found.
      #
      # @api private
      #
      # @since 1.0.1
      #
      def const_missing(name)
        Property.find_class(name.to_s) || super
      end

    end # module Lookup
  end # class Property
end # module Ardm

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ardm-0.4.0.ar427 lib/ardm/property/lookup.rb
ardm-0.4.0 lib/ardm/property/lookup.rb
ardm-0.3.2 lib/ardm/property/lookup.rb
ardm-0.3.1 lib/ardm/property/lookup.rb
ardm-0.3.0 lib/ardm/property/lookup.rb
ardm-0.2.7 lib/ardm/property/lookup.rb
ardm-0.2.6 lib/ardm/property/lookup.rb
ardm-0.2.5 lib/ardm/property/lookup.rb
ardm-0.2.4 lib/ardm/property/lookup.rb
ardm-0.2.3 lib/ardm/property/lookup.rb
ardm-0.2.2 lib/ardm/property/lookup.rb
ardm-0.2.1 lib/ardm/property/lookup.rb
ardm-0.2.0 lib/ardm/property/lookup.rb
ardm-0.1.0 lib/ardm/property/lookup.rb
ardm-0.0.1 lib/ardm/property/lookup.rb