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.



141
142
143
# File 'lib/jazzy/doc_index.rb', line 141

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



139
140
141
# File 'lib/jazzy/doc_index.rb', line 139

def name
  @name
end

Instance Method Details

#fully_qualified?Boolean

Returns:

  • (Boolean)


145
146
147
# File 'lib/jazzy/doc_index.rb', line 145

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

#objc?Boolean

Returns:

  • (Boolean)


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

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

#partsObject



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

def parts
  @parts ||= find_parts
end