Class: RubyReactor::Template::Value

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_reactor/template/value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.



8
9
10
11
# File 'lib/ruby_reactor/template/value.rb', line 8

def initialize(value)
  super()
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/ruby_reactor/template/value.rb', line 6

def value
  @value
end

Instance Method Details

#inspectObject



17
18
19
# File 'lib/ruby_reactor/template/value.rb', line 17

def inspect
  "value(#{@value.inspect})"
end

#resolve(_context) ⇒ Object



13
14
15
# File 'lib/ruby_reactor/template/value.rb', line 13

def resolve(_context)
  @value
end