Module: Parametric::FieldDSL

Included in:
Field
Defined in:
lib/parametric/field_dsl.rb

Overview

Field DSL host instance must implement: #meta(options Hash) #policy(key Symbol) self

Instance Method Summary collapse

Instance Method Details

#declaredObject



18
19
20
# File 'lib/parametric/field_dsl.rb', line 18

def declared
  policy :declared
end

#nullableObject



26
27
28
# File 'lib/parametric/field_dsl.rb', line 26

def nullable
  policy :nullable
end

#options(opts) ⇒ Object



22
23
24
# File 'lib/parametric/field_dsl.rb', line 22

def options(opts)
  policy :options, opts
end

#presentObject



14
15
16
# File 'lib/parametric/field_dsl.rb', line 14

def present
  required.policy :present
end

#requiredObject



10
11
12
# File 'lib/parametric/field_dsl.rb', line 10

def required
  policy :required
end