Class: Faust2Ruby::AST::QualifiedName

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

Overview

Qualified name: os.osc, fi.lowpass, etc.

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(parts, **opts) ⇒ QualifiedName

Returns a new instance of QualifiedName.



98
99
100
101
# File 'lib/faust2ruby/ast.rb', line 98

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

Instance Attribute Details

#partsObject (readonly)

Returns the value of attribute parts.



96
97
98
# File 'lib/faust2ruby/ast.rb', line 96

def parts
  @parts
end

Instance Method Details

#to_sObject



103
104
105
# File 'lib/faust2ruby/ast.rb', line 103

def to_s
  parts.join(".")
end