Sha256: 6d3355ad4b480b31d19174e9e426bf8607647f4f01e1e67070d487f1c45926ed

Contents?: true

Size: 363 Bytes

Versions: 12

Compression:

Stored size: 363 Bytes

Contents

module Parametric
  # Field DSL
  # host instance must implement:
  # #meta(options Hash)
  # #policy(key Symbol) self
  #
  module FieldDSL
    def required
      policy :required
    end

    def present
      required.policy :present
    end

    def declared
      policy :declared
    end

    def options(opts)
      policy :options, opts
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
parametric-0.2.10 lib/parametric/field_dsl.rb
parametric-0.2.9 lib/parametric/field_dsl.rb
parametric-0.2.8 lib/parametric/field_dsl.rb
parametric-0.2.7 lib/parametric/field_dsl.rb
parametric-0.2.6 lib/parametric/field_dsl.rb
parametric-0.2.5 lib/parametric/field_dsl.rb
parametric-0.2.4 lib/parametric/field_dsl.rb
parametric-0.2.3 lib/parametric/field_dsl.rb
parametric-0.2.2 lib/parametric/field_dsl.rb
parametric-0.2.1 lib/parametric/field_dsl.rb
parametric-0.2.0 lib/parametric/field_dsl.rb
parametric-0.1.3 lib/parametric/field_dsl.rb