Class: HashMapper::Dsl::Key
- Inherits:
-
Object
- Object
- HashMapper::Dsl::Key
- Defined in:
- lib/hash-mapper/dsl.rb
Instance Method Summary collapse
-
#initialize(name: nil, source: nil, create: nil, then_block: nil, merge: nil, allow_nil: nil, if_key: nil, value: nil) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(name: nil, source: nil, create: nil, then_block: nil, merge: nil, allow_nil: nil, if_key: nil, value: nil) ⇒ Key
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/hash-mapper/dsl.rb', line 32 def initialize(name: nil, source: nil, create: nil, then_block: nil, merge: nil, allow_nil: nil, if_key: nil, value: nil) @name = name @source = source @create = create @then_block = then_block @merge = merge @allow_nil = allow_nil @if_key = if_key @value = value end |