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