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.
152 153 154 |
# File 'lib/jazzy/doc_index.rb', line 152 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (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
156 157 158 |
# File 'lib/jazzy/doc_index.rb', line 156 def fully_qualified? name.start_with?('/') end |
#objc? ⇒ Boolean
160 161 162 |
# File 'lib/jazzy/doc_index.rb', line 160 def objc? name.start_with?('-', '+') end |
#parts ⇒ Object
164 165 166 |
# File 'lib/jazzy/doc_index.rb', line 164 def parts @parts ||= find_parts end |