# lib/module_a/cool_class.rb
module ModuleA
class CoolClass; end
end
# lib/module_b/cool_class.rb
module ModuleB
class CoolClass; end
end
Typing <C-] will always open the first class. The second class is accessible with :tnext, but this is annoying if there are multiple classes with the same name in different modules.
Ex. with two classes :
Typing
<C-]
will always open the first class. The second class is accessible with:tnext
, but this is annoying if there are multiple classes with the same name in different modules.