Sha256: f4abd81083df9f091777887364877d35e99af018d888ba1c1ff13cd9462140f5

Contents?: true

Size: 218 Bytes

Versions: 1

Compression:

Stored size: 218 Bytes

Contents

module Mocktail
  class StringifiesMethodName
    extend T::Sig

    def stringify(call)
      [
        call.original_type&.name,
        call.singleton ? "." : "#",
        call.method
      ].join
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mocktail-2.0.0 lib/mocktail/share/stringifies_method_name.rb