Class: Seaquel::AST::Literal
- Inherits:
-
Expression
- Object
- Expression
- Seaquel::AST::Literal
- Defined in:
- lib/seaquel/ast/literal.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Literal
constructor
A new instance of Literal.
- #visit(visitor) ⇒ Object
Methods inherited from Expression
Constructor Details
#initialize(text) ⇒ Literal
Returns a new instance of Literal.
8 9 10 |
# File 'lib/seaquel/ast/literal.rb', line 8 def initialize text @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/seaquel/ast/literal.rb', line 6 def text @text end |
Instance Method Details
#visit(visitor) ⇒ Object
12 13 14 |
# File 'lib/seaquel/ast/literal.rb', line 12 def visit visitor visitor.visit_literal(text) end |