Class: Wood::Nodes::Function::Definition
- Defined in:
- lib/wood/nodes/function.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
Returns the value of attribute scope.
Instance Method Summary collapse
Instance Attribute Details
#scope ⇒ Object
Returns the value of attribute scope.
20 21 22 |
# File 'lib/wood/nodes/function.rb', line 20 def scope @scope end |
Instance Method Details
#setup ⇒ Object
22 23 24 25 |
# File 'lib/wood/nodes/function.rb', line 22 def setup @args = args || [] @body = body || CodeBlock[pos: pos] end |