Sha256: 9cba5c8640d296c21b0257ff77feb61ffbfb2ddd0f3b9f9de45f6f257c194d3f

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

require 'son_jay/object_model/properties/abstract'
require 'son_jay/object_model/properties/properties_without_extra'
require 'son_jay/object_model/properties/properties_with_extra'

module SonJay
  class ObjectModel

    module Properties

      def self.new(property_definitions, allow_extra)
        klass = allow_extra ?
          self::PropertiesWithExtra :
          self::PropertiesWithoutExtra
        klass.new( property_definitions )
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
son_jay-0.4.1 lib/son_jay/object_model/properties.rb
son_jay-0.4.0 lib/son_jay/object_model/properties.rb