Class: Erlash::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/erlash/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#formatterObject (readonly)

Returns the value of attribute formatter.



3
4
5
# File 'lib/erlash/context.rb', line 3

def formatter
  @formatter
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/erlash/context.rb', line 3

def value
  @value
end