Sha256: 67dd001048fb1e17e3f0d95374540a7c8a434bd431bc3ab476723626407f0085
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
module Bogus class MakesSubstituteMethods extend Takes takes :method_stringifier def stringify(method) args = method_stringifier.arguments_as_string(method.parameters) args_no_defaults = args.gsub(' = {}', '') method_stringifier.stringify(method, "__record__(:#{method.name}, #{args_no_defaults})") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.0.3 | lib/bogus/makes_substitute_methods.rb |
bogus-0.0.3.rc.2 | lib/bogus/makes_substitute_methods.rb |
bogus-0.0.3.rc.1 | lib/bogus/makes_substitute_methods.rb |