Class: Faust2Ruby::AST::StringLiteral

Inherits:
Node
  • Object
show all
Defined in:
lib/faust2ruby/ast.rb

Overview

String literal

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(value, **opts) ⇒ StringLiteral

Returns a new instance of StringLiteral.



142
143
144
145
# File 'lib/faust2ruby/ast.rb', line 142

def initialize(value, **opts)
  super(**opts)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



140
141
142
# File 'lib/faust2ruby/ast.rb', line 140

def value
  @value
end