Class: Mocktail::StringifiesMethodName

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/mocktail/share/stringifies_method_name.rb,
lib/mocktail/sorbet/mocktail/share/stringifies_method_name.rb

Instance Method Summary collapse

Instance Method Details

#stringify(call) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/mocktail/share/stringifies_method_name.rb', line 5

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