Class: Erlash::Context
- Inherits:
-
Object
- Object
- Erlash::Context
- Defined in:
- lib/erlash/context.rb
Instance Attribute Summary collapse
-
#formatter ⇒ Object
readonly
Returns the value of attribute formatter.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(formatter, value) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(formatter, value) ⇒ Context
Returns a new instance of Context.
4 5 6 7 |
# File 'lib/erlash/context.rb', line 4 def initialize(formatter, value) @formatter = formatter @value = value end |
Instance Attribute Details
#formatter ⇒ Object (readonly)
Returns the value of attribute formatter.
3 4 5 |
# File 'lib/erlash/context.rb', line 3 def formatter @formatter end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/erlash/context.rb', line 3 def value @value end |