Sha256: 718716d3b7da9dc6a822d84df7ff27224c9524d4af31a05aa98fbda0ace5e2a4

Contents?: true

Size: 399 Bytes

Versions: 5

Compression:

Stored size: 399 Bytes

Contents

module Structural
  module Model
    module Descriptor
      def field(f, options={})
        Field.new(self, f, options).define
      end

      def has_one(f, options={})
        HasOne.new(self, f, options).define
      end

      def has_many(f, options={})
        HasMany.new(self, f, options).define
      end

      def to_proc
        lambda { |data| new data }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
structural-0.2.0 lib/structural/model/descriptor.rb
structural-0.1.0 lib/structural/model/descriptor.rb
structural-0.0.3 lib/structural/model/descriptor.rb
structural-0.0.2 lib/structural/model/descriptor.rb
structural-0.0.1 lib/structural/model/descriptor.rb