Class: Gemgate::Repository
- Inherits:
-
Object
- Object
- Gemgate::Repository
- Defined in:
- lib/gemgate/repository.rb
Instance Attribute Summary collapse
-
#gem_files ⇒ Object
writeonly
Sets the attribute gem_files.
-
#index ⇒ Object
writeonly
Sets the attribute index.
-
#realizer ⇒ Object
writeonly
Sets the attribute realizer.
Instance Method Summary collapse
Instance Attribute Details
#gem_files=(value) ⇒ Object
Sets the attribute gem_files
3 4 5 |
# File 'lib/gemgate/repository.rb', line 3 def gem_files=(value) @gem_files = value end |
#index=(value) ⇒ Object
Sets the attribute index
3 4 5 |
# File 'lib/gemgate/repository.rb', line 3 def index=(value) @index = value end |
#realizer=(value) ⇒ Object
Sets the attribute realizer
3 4 5 |
# File 'lib/gemgate/repository.rb', line 3 def realizer=(value) @realizer = value end |
Instance Method Details
#add_gem(path) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/gemgate/repository.rb', line 5 def add_gem(path) gem = realizer.call(path) gem_files.add(gem) index.add(gem) end |