Class: Spandx::Ruby::Index
- Inherits:
-
Object
- Object
- Spandx::Ruby::Index
- Includes:
- Enumerable
- Defined in:
- lib/spandx/ruby/index.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rubygems ⇒ Object
readonly
Returns the value of attribute rubygems.
Instance Method Summary collapse
-
#initialize(directory:) ⇒ Index
constructor
A new instance of Index.
- #update! ⇒ Object
Constructor Details
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
8 9 10 |
# File 'lib/spandx/ruby/index.rb', line 8 def directory @directory end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/spandx/ruby/index.rb', line 8 def name @name end |
#rubygems ⇒ Object (readonly)
Returns the value of attribute rubygems.
8 9 10 |
# File 'lib/spandx/ruby/index.rb', line 8 def rubygems @rubygems end |
Instance Method Details
#update! ⇒ Object
17 18 19 20 21 |
# File 'lib/spandx/ruby/index.rb', line 17 def update!(*) queue = Queue.new [fetch(queue), save(queue)].each(&:join) cache.rebuild_index end |