Class: RBelly::Nodes::BellejsFuncStatementNode

Inherits:
Node
  • Object
show all
Defined in:
lib/rbelly/nodes/bellejs/bellejs_func_statement_node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#comments, #filename, #line, #value

Instance Method Summary collapse

Methods inherited from Node

#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp

Methods included from Visitable

#accept

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_statementObject (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

#nameObject (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

#visibilityObject (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