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