Class: AbstractSyntaxTreeKit::Node::CLASS

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/class.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

#children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type

Instance Method Summary collapse

Constructor Details

#initialize(node:, path:, superclass:, body:) ⇒ CLASS

Returns a new instance of CLASS.



6
7
8
9
10
11
# File 'lib/astkit/node/class.rb', line 6

def initialize(node:, path:, superclass:, body:)
  super(node)
  @path = path
  @superclass = superclass
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/astkit/node/class.rb', line 4

def body
  @body
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/astkit/node/class.rb', line 4

def path
  @path
end

#superclassObject (readonly)

Returns the value of attribute superclass.



4
5
6
# File 'lib/astkit/node/class.rb', line 4

def superclass
  @superclass
end