Module: CrossStub::Arguments::Array
- Defined in:
- lib/cross-stub/arguments/array.rb
Class Method Summary collapse
Class Method Details
.parse(symbols) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/cross-stub/arguments/array.rb', line 6 def parse(symbols) symbols.inject({}) do |memo, name| code = "def #{name} ; nil ; end" memo.merge(:"#{name}" => code) end end |