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
#declared ⇒ Object
18 19 20 |
# File 'lib/parametric/field_dsl.rb', line 18 def declared policy :declared end |
#nullable ⇒ Object
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 (opts) policy :options, opts end |
#present ⇒ Object
14 15 16 |
# File 'lib/parametric/field_dsl.rb', line 14 def present required.policy :present end |
#required ⇒ Object
10 11 12 |
# File 'lib/parametric/field_dsl.rb', line 10 def required policy :required end |