Class: Jazzy::DocIndex::LookupName
- Inherits:
-
Object
- Object
- Jazzy::DocIndex::LookupName
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #fully_qualified? ⇒ Boolean
-
#initialize(name) ⇒ LookupName
constructor
A new instance of LookupName.
- #objc? ⇒ Boolean
- #parts ⇒ Object
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
#name ⇒ Object (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
145 146 147 |
# File 'lib/jazzy/doc_index.rb', line 145 def fully_qualified? name.start_with?('/') end |
#objc? ⇒ Boolean
149 150 151 |
# File 'lib/jazzy/doc_index.rb', line 149 def objc? name.start_with?('-', '+') end |
#parts ⇒ Object
153 154 155 |
# File 'lib/jazzy/doc_index.rb', line 153 def parts @parts ||= find_parts end |