Class: Faust2Ruby::AST::Declare

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

Overview

Declare statement: declare name “author”;

Instance Attribute Summary collapse

Attributes inherited from Node

#column, #line

Instance Method Summary collapse

Constructor Details

#initialize(key, value, **opts) ⇒ Declare

Returns a new instance of Declare.



41
42
43
44
45
# File 'lib/faust2ruby/ast.rb', line 41

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



39
40
41
# File 'lib/faust2ruby/ast.rb', line 39

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



39
40
41
# File 'lib/faust2ruby/ast.rb', line 39

def value
  @value
end