class RSpec::Mocks::ArityCalculator
def max_arity
def max_arity params = method.parameters if params.any? {|(type, _)| type == :rest } # Method takes a splat argument return INFINITY else params.count {|(type, _)| type != :block } end end
def max_arity params = method.parameters if params.any? {|(type, _)| type == :rest } # Method takes a splat argument return INFINITY else params.count {|(type, _)| type != :block } end end