class RuboCop::AST::NodePattern::Node

def arity_range

Returns:
  • (Range) - arity as a Range
def arity_range
  a = arity
  a.is_a?(Range) ? a : INT_TO_RANGE[a]
end