Class: Jazzy::DocIndex::LookupName

Inherits:
Object
  • Object
show all
Defined in:
lib/jazzy/doc_index.rb

Overview

Helper for name lookup, really a cache for information as we try various strategies.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ LookupName

Returns a new instance of LookupName.



152
153
154
# File 'lib/jazzy/doc_index.rb', line 152

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



150
151
152
# File 'lib/jazzy/doc_index.rb', line 150

def name
  @name
end

Instance Method Details

#fully_qualified?Boolean

Returns:

  • (Boolean)


156
157
158
# File 'lib/jazzy/doc_index.rb', line 156

def fully_qualified?
  name.start_with?('/')
end

#objc?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/jazzy/doc_index.rb', line 160

def objc?
  name.start_with?('-', '+')
end

#partsObject



164
165
166
# File 'lib/jazzy/doc_index.rb', line 164

def parts
  @parts ||= find_parts
end