Sha256: 68994f0960e383434ae95bc5c0003125bef63c01cd70c57fef0bb97f26dcb99a

Contents?: true

Size: 296 Bytes

Versions: 2

Compression:

Stored size: 296 Bytes

Contents

module Bogus
  class MakesSubstituteMethods
    extend Takes

    takes :method_stringifier

    def stringify(method)
      args = method_stringifier.argument_values(method.parameters)

      method_stringifier.stringify(method,
        "__record__(:#{method.name}, #{args})")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bogus-0.1.0 lib/bogus/makes_substitute_methods.rb
bogus-0.0.4 lib/bogus/makes_substitute_methods.rb