Class: JSE::Ast::LiteralNode
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from AstNode
Instance Method Summary collapse
- #apply(_call_env) ⇒ Object
-
#initialize(value, env) ⇒ LiteralNode
constructor
A new instance of LiteralNode.
- #to_json ⇒ Object
Constructor Details
#initialize(value, env) ⇒ LiteralNode
Returns a new instance of LiteralNode.
4 5 6 7 |
# File 'lib/jse/ast/nodes.rb', line 4 def initialize(value, env) super(env) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/jse/ast/nodes.rb', line 9 def value @value end |
Instance Method Details
#apply(_call_env) ⇒ Object
11 12 13 |
# File 'lib/jse/ast/nodes.rb', line 11 def apply(_call_env) @value end |
#to_json ⇒ Object
15 16 17 |
# File 'lib/jse/ast/nodes.rb', line 15 def to_json @value end |