Sha256: 164ef4781629b613cdfe2415739741d4dec7991e5cbae1c5fc971b06c2f16e90

Contents?: true

Size: 342 Bytes

Versions: 8

Compression:

Stored size: 342 Bytes

Contents

module SonJay
  class ObjectModel
    class PropertiesDefiner

      def initialize(property_definitions)
        @property_definitions = property_definitions
      end

      def property(name, options={})
        name = "#{name}"
        @property_definitions << PropertyDefinition.new( name, options[:model] )
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
son_jay-0.5.2 lib/son_jay/object_model/properties_definer.rb
son_jay-0.5.1 lib/son_jay/object_model/properties_definer.rb
son_jay-0.5.0 lib/son_jay/object_model/properties_definer.rb
son_jay-0.4.1 lib/son_jay/object_model/properties_definer.rb
son_jay-0.4.0 lib/son_jay/object_model/properties_definer.rb
son_jay-0.3.0 lib/son_jay/object_model/properties_definer.rb
son_jay-0.2.0.alpha lib/son_jay/object_model/properties_definer.rb
son_jay-0.1.1.alpha lib/son_jay/object_model/properties_definer.rb