Class: Faust2Ruby::AST::Declare
Overview
Declare statement: declare name “author”;
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(key, value, **opts) ⇒ Declare
constructor
A new instance of Declare.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
39 40 41 |
# File 'lib/faust2ruby/ast.rb', line 39 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
39 40 41 |
# File 'lib/faust2ruby/ast.rb', line 39 def value @value end |