Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/mappum/dsl.rb
Instance Method Summary collapse
Instance Method Details
#>>(field) ⇒ Object
2 3 4 5 |
# File 'lib/mappum/dsl.rb', line 2 def >> field return {Mappum::DSL::Constant.new(self) => field} if field.kind_of?(Mappum::DSL::Field) throw "Constant can be mapped to field only" end |