lib/steep/project/hover_content.rb in steep-0.27.0 vs lib/steep/project/hover_content.rb in steep-0.28.0
- old
+ new
@@ -90,10 +90,10 @@
[
InstanceMethodName.new(owner_name, method_name),
method_definition
]
end
- when AST::Types::Name::Class
+ when AST::Types::Name::Singleton
method_definition = method_definition_for(factory, receiver_type.name, singleton_method: method_name)
if method_definition&.defined_in
owner_name = factory.type_name(method_definition.defined_in)
[
SingletonMethodName.new(owner_name, method_name),