Sha256: 0d8c73803effc3968e286e2666e55c546b63f640d8dc35ae09a1f0d3237a443c

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

module DataMapper
  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 DataMapper

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ghost_dm-core-1.3.0.beta lib/dm-core/property/lookup.rb