lib/bogus/makes_substitute_methods.rb in bogus-0.1.0 vs lib/bogus/makes_substitute_methods.rb in bogus-0.1.1
- old
+ new
@@ -5,10 +5,11 @@
takes :method_stringifier
def stringify(method)
args = method_stringifier.argument_values(method.parameters)
- method_stringifier.stringify(method,
- "__record__(:#{method.name}, #{args})")
+ send_args = [method.name.inspect, args].reject(&:empty?).join(', ')
+
+ method_stringifier.stringify(method, "__record__(#{send_args})")
end
end
end