class RuboCop::AST::NodePattern::Node

def arity_range

Experimental RBS support (using type sampling data from the type_fusion project).

def arity_range: () -> Range

This signature was generated using 8 samples from 1 application.

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