Class: Bogus::MakesSubstituteMethods
- Inherits:
-
Object
- Object
- Bogus::MakesSubstituteMethods
- Extended by:
- Takes
- Defined in:
- lib/bogus/fakes/makes_substitute_methods.rb
Instance Method Summary collapse
Methods included from Takes
Instance Method Details
#stringify(method) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/bogus/fakes/makes_substitute_methods.rb', line 7 def stringify(method) args = method_stringifier.argument_values(method.parameters) send_args = [method.name.inspect, args].reject(&:empty?).join(', ') method_stringifier.stringify(method, "__record__(#{send_args})") end |