Class: RKelly::Nodes::FunctionExprNode
- Defined in:
- lib/rkelly/nodes/function_expr_node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#function_body ⇒ Object
readonly
Returns the value of attribute function_body.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(name, body, args = []) ⇒ FunctionExprNode
constructor
A new instance of FunctionExprNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(name, body, args = []) ⇒ FunctionExprNode
Returns a new instance of FunctionExprNode.
5 6 7 8 9 |
# File 'lib/rkelly/nodes/function_expr_node.rb', line 5 def initialize(name, body, args = []) super(name) @function_body = body @arguments = args end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
4 5 6 |
# File 'lib/rkelly/nodes/function_expr_node.rb', line 4 def arguments @arguments end |
#function_body ⇒ Object (readonly)
Returns the value of attribute function_body.
4 5 6 |
# File 'lib/rkelly/nodes/function_expr_node.rb', line 4 def function_body @function_body end |