Class: Johnson::Nodes::Function
- Defined in:
- lib/johnson/nodes/function.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, column, name, arguments, body) ⇒ Function
constructor
A new instance of Function.
Methods inherited from Node
#each, #to_dot, #to_ecma, #to_s, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(line, column, name, arguments, body) ⇒ Function
Returns a new instance of Function.
6 7 8 9 10 |
# File 'lib/johnson/nodes/function.rb', line 6 def initialize(line, column, name, arguments, body) super(line, column, body) @name = name @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/johnson/nodes/function.rb', line 5 def arguments @arguments end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/johnson/nodes/function.rb', line 5 def name @name end |