Class: RubyReactor::Template::Value
- Defined in:
- lib/ruby_reactor/template/value.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
- #inspect ⇒ Object
- #resolve(_context) ⇒ Object
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
#value ⇒ Object (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
#inspect ⇒ Object
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 |