Class: RBelly::Nodes::BellejsFuncStatementNode
- Defined in:
- lib/rbelly/nodes/bellejs/bellejs_func_statement_node.rb
Instance Attribute Summary collapse
-
#func_statement ⇒ Object
readonly
Returns the value of attribute func_statement.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#visibility ⇒ Object
readonly
Returns the value of attribute visibility.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(visibility, func_statement) ⇒ BellejsFuncStatementNode
constructor
A new instance of BellejsFuncStatementNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(visibility, func_statement) ⇒ BellejsFuncStatementNode
Returns a new instance of BellejsFuncStatementNode.
5 6 7 8 9 10 |
# File 'lib/rbelly/nodes/bellejs/bellejs_func_statement_node.rb', line 5 def initialize(visibility, func_statement) super(visibility) @name = visibility @visibility = visibility @func_statement = func_statement end |
Instance Attribute Details
#func_statement ⇒ Object (readonly)
Returns the value of attribute func_statement.
4 5 6 |
# File 'lib/rbelly/nodes/bellejs/bellejs_func_statement_node.rb', line 4 def func_statement @func_statement end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/rbelly/nodes/bellejs/bellejs_func_statement_node.rb', line 4 def name @name end |
#visibility ⇒ Object (readonly)
Returns the value of attribute visibility.
4 5 6 |
# File 'lib/rbelly/nodes/bellejs/bellejs_func_statement_node.rb', line 4 def visibility @visibility end |