Class: Riml::LiteralNode
- Inherits:
-
Struct
- Object
- Struct
- Riml::LiteralNode
- Includes:
- Visitable
- Defined in:
- lib/nodes.rb
Overview
Literals are static values that have a Ruby representation, eg.: a string, number, list, true, false, nil, etc.
Direct Known Subclasses
DictionaryNode, ExLiteralNode, FalseNode, ListNode, NumberNode, RegexpNode, SIDNode, ScopeModifierLiteralNode, TrueNode
Constant Summary
Constants included from Visitable
Visitable::DESCENDANT_OF_REGEX
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes included from Visitable
#compiled_output, #force_newline, #parent_node, #scope
Method Summary
Methods included from Visitable
#accept, #method_missing, #respond_to?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Riml::Visitable
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
202 203 204 |
# File 'lib/nodes.rb', line 202 def value @value end |