Module: Assert::Stub::ParameterList

Defined in:
lib/assert/stub.rb

Constant Summary collapse

LETTERS =
('a'..'z').to_a.freeze

Class Method Summary collapse

Class Method Details

.new(object, method_name) ⇒ Object



153
154
155
156
157
158
159
# File 'lib/assert/stub.rb', line 153

def self.new(object, method_name)
  arity = get_arity(object, method_name)
  params = build_params_from_arity(arity)
  params << '*args' if arity < 0
  params << '&block'
  params.join(', ')
end