class RuboCop::AST::WhenNode

def then?

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