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.
358 359 360 |
# File 'lib/mirah/ast.rb', line 358 def literal @literal end |
Instance Method Details
#string_value ⇒ Object
364 365 366 |
# File 'lib/mirah/ast.rb', line 364 def string_value literal.to_s end |
#to_s ⇒ Object
360 361 362 |
# File 'lib/mirah/ast.rb', line 360 def to_s "#{super}(#{literal.inspect})" end |