Class: AbstractSyntaxTreeKit::Node::RESBODY

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/resbody.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:, exceptions:, clause:, next_rescue:) ⇒ RESBODY

Returns a new instance of RESBODY.



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

def initialize(node:, exceptions:, clause:, next_rescue:)
  super(node)
  @exceptions = exceptions
  @clause = clause
  @next_rescue = next_rescue
end

Instance Attribute Details

#clauseObject (readonly)

Returns the value of attribute clause.



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

def clause
  @clause
end

#exceptionsObject (readonly)

Returns the value of attribute exceptions.



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

def exceptions
  @exceptions
end

#next_rescueObject (readonly)

Returns the value of attribute next_rescue.



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

def next_rescue
  @next_rescue
end