Class: Melbourne::AST::DynamicString
- Inherits:
-
StringLiteral
- Object
- Node
- StringLiteral
- Melbourne::AST::DynamicString
- Defined in:
- lib/melbourne/ast/literals.rb
Overview
A dynamic string literal as in:
"some #{a}"
Direct Known Subclasses
Instance Attribute Summary collapse
-
#array ⇒ Object
The parts of the dynamic string literal.
-
#options ⇒ Object
Returns the value of attribute options.
Attributes inherited from StringLiteral
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, str, array) ⇒ DynamicString
constructor
A new instance of DynamicString.
Methods inherited from Node
Constructor Details
#initialize(line, str, array) ⇒ DynamicString
Returns a new instance of DynamicString.
216 217 218 219 220 |
# File 'lib/melbourne/ast/literals.rb', line 216 def initialize(line, str, array) @line = line @string = str @array = array end |
Instance Attribute Details
#array ⇒ Object
The parts of the dynamic string literal
212 213 214 |
# File 'lib/melbourne/ast/literals.rb', line 212 def array @array end |
#options ⇒ Object
Returns the value of attribute options.
214 215 216 |
# File 'lib/melbourne/ast/literals.rb', line 214 def end |