Class: Melbourne::AST::StringLiteral
- Defined in:
- lib/melbourne/ast/literals.rb
Overview
A string literal as in:
'some'
Direct Known Subclasses
Instance Attribute Summary collapse
-
#string ⇒ Object
The actual string of the string literal.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, str) ⇒ StringLiteral
constructor
A new instance of StringLiteral.
Methods inherited from Node
Constructor Details
#initialize(line, str) ⇒ StringLiteral
Returns a new instance of StringLiteral.
197 198 199 200 |
# File 'lib/melbourne/ast/literals.rb', line 197 def initialize(line, str) @line = line @string = str end |
Instance Attribute Details
#string ⇒ Object
The actual string of the string literal
195 196 197 |
# File 'lib/melbourne/ast/literals.rb', line 195 def string @string end |