class RuboCop::AST::EnsureNode

to all ‘ensure` nodes within RuboCop.
node when the builder constructs the AST, making its methods available
A node extension for `ensure` nodes. This will be used in place of a plain

def body

Returns:
  • (Node, nil) - The body of the `ensure`.
def body
  node_parts[1]
end

def void_context?

Returns:
  • (true) - whether the `ensure` node body is a void context
def void_context?
  true
end