Module: Ducktape::Expression::LiteralExp
- Included in:
- IdentifierExp, IntegerExp, SymbolExp
- Defined in:
- lib/ducktape/expression/literal_exp.rb
Instance Attribute Summary collapse
-
#literal ⇒ Object
(also: #value)
readonly
Returns the value of attribute literal.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
- #bind(_, _) ⇒ Object
- #initialize(literal) ⇒ Object
- #rightmost ⇒ Object
- #unbind ⇒ Object
- #unparse ⇒ Object
Instance Attribute Details
#literal ⇒ Object (readonly) Also known as: value
Returns the value of attribute literal.
4 5 6 |
# File 'lib/ducktape/expression/literal_exp.rb', line 4 def literal @literal end |
#owner ⇒ Object
Returns the value of attribute owner.
5 6 7 |
# File 'lib/ducktape/expression/literal_exp.rb', line 5 def owner @owner end |
Instance Method Details
#bind(_, _) ⇒ Object
12 |
# File 'lib/ducktape/expression/literal_exp.rb', line 12 def bind(_, _) end |
#initialize(literal) ⇒ Object
7 8 9 10 |
# File 'lib/ducktape/expression/literal_exp.rb', line 7 def initialize(literal) @literal = literal @literal.freeze end |
#rightmost ⇒ Object
15 16 17 |
# File 'lib/ducktape/expression/literal_exp.rb', line 15 def rightmost nil end |
#unbind ⇒ Object
13 |
# File 'lib/ducktape/expression/literal_exp.rb', line 13 def unbind; end |
#unparse ⇒ Object
19 20 21 |
# File 'lib/ducktape/expression/literal_exp.rb', line 19 def unparse literal.inspect end |