Class: Scribble::Nodes::Value
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
- #evaluate(context, **options) ⇒ Object
-
#initialize(slice, value) ⇒ Value
constructor
A new instance of Value.
Methods inherited from Node
#block?, #line_and_column, #split?
Constructor Details
#initialize(slice, value) ⇒ Value
Returns a new instance of Value.
6 7 8 9 |
# File 'lib/scribble/nodes/value.rb', line 6 def initialize slice, value super(slice) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/scribble/nodes/value.rb', line 4 def value @value end |
Instance Method Details
#evaluate(context, **options) ⇒ Object
11 12 13 |
# File 'lib/scribble/nodes/value.rb', line 11 def evaluate context, ** @value end |