Class: HashMapper::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/hash-mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#inputObject (readonly)

Returns the value of attribute input.



58
59
60
# File 'lib/hash-mapper.rb', line 58

def input
  @input
end

#stateObject

Returns the value of attribute state.



58
59
60
# File 'lib/hash-mapper.rb', line 58

def state
  @state
end

#valueObject (readonly)

Returns the value of attribute value.



58
59
60
# File 'lib/hash-mapper.rb', line 58

def value
  @value
end