Class: AbstractSyntaxTreeKit::Node::DEFN

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

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

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

Instance Method Summary collapse

Constructor Details

#initialize(node:, method_id:, method_definition:) ⇒ DEFN

Returns a new instance of DEFN.



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

def initialize(node:, method_id:, method_definition:)
  super(node)
  @method_id = method_id
  @method_definition = method_definition
end

Instance Attribute Details

#method_definitionObject (readonly)

Returns the value of attribute method_definition.



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

def method_definition
  @method_definition
end

#method_idObject (readonly)

Returns the value of attribute method_id.



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

def method_id
  @method_id
end