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
177 178 179 180 181 182 183 |
# File 'lib/assert/stub.rb', line 177 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 |