Class: YARD::CodeObjects::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yard-js/core_ext/yard/code_objects.rb

Instance Method Summary collapse

Instance Method Details

#old_relative_pathObject



6
# File 'lib/yard-js/core_ext/yard/code_objects.rb', line 6

alias old_relative_path relative_path

#relative_path(other) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/yard-js/core_ext/yard/code_objects.rb', line 7

def relative_path(other)
  if other.is_a?(NamespaceObject)
    other.path
  else
    old_relative_path(other)
  end
end