Class: HashMapper::Context
- Inherits:
-
Object
- Object
- HashMapper::Context
- Defined in:
- lib/hash-mapper.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#state ⇒ Object
Returns the value of attribute state.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(input, state, value) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(input, state, value) ⇒ Context
Returns a new instance of Context.
61 62 63 64 65 |
# File 'lib/hash-mapper.rb', line 61 def initialize(input, state, value) @input = input @state = state @value = value end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
58 59 60 |
# File 'lib/hash-mapper.rb', line 58 def input @input end |
#state ⇒ Object
Returns the value of attribute state.
58 59 60 |
# File 'lib/hash-mapper.rb', line 58 def state @state end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
58 59 60 |
# File 'lib/hash-mapper.rb', line 58 def value @value end |