Module: Mirah::AST::Literal
- Includes:
- Typed
- Defined in:
- lib/mirah/ast.rb
Instance Attribute Summary collapse
-
#literal ⇒ Object
Returns the value of attribute literal.
Attributes included from Typed
Instance Method Summary collapse
Instance Attribute Details
#literal ⇒ Object
Returns the value of attribute literal.
340 341 342 |
# File 'lib/mirah/ast.rb', line 340 def literal @literal end |
Instance Method Details
#string_value ⇒ Object
346 347 348 |
# File 'lib/mirah/ast.rb', line 346 def string_value literal.to_s end |
#to_s ⇒ Object
342 343 344 |
# File 'lib/mirah/ast.rb', line 342 def to_s "#{super}(#{literal.inspect})" end |