Module: MuchStub::ParameterList
- Defined in:
- lib/much-stub.rb
Constant Summary collapse
- LETTERS =
("a".."z").to_a.freeze
Class Method Summary collapse
Class Method Details
.new(object, method_name) ⇒ Object
252 253 254 255 256 257 258 |
# File 'lib/much-stub.rb', line 252 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 |