class RuboCop::AST::UntilNode

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

def do?

Returns:
  • (Boolean) - whether the `until` node has a `do` keyword
def do?
  loc.begin&.is?('do')
end

def inverse_keyword

Returns:
  • (String) - the inverse keyword of the `until` statement
def inverse_keyword
  'while'
end

def keyword

Returns:
  • (String) - the keyword of the `until` statement
def keyword
  'until'
end