Class: Gemgate::GemFiles
- Inherits:
-
Object
- Object
- Gemgate::GemFiles
- Defined in:
- lib/gemgate/gem_files.rb
Instance Attribute Summary collapse
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
Instance Attribute Details
#storage ⇒ Object
Returns the value of attribute storage.
3 4 5 |
# File 'lib/gemgate/gem_files.rb', line 3 def storage @storage end |
Instance Method Details
#add(gem) ⇒ Object
5 6 7 |
# File 'lib/gemgate/gem_files.rb', line 5 def add(gem) storage.create("gems/#{gem.filename}", gem.data) end |