Class: Ratonvirus::Processable
- Inherits:
-
Object
- Object
- Ratonvirus::Processable
- Defined in:
- lib/ratonvirus/processable.rb
Instance Method Summary collapse
-
#initialize(storage, asset) ⇒ Processable
constructor
A new instance of Processable.
- #path(&block) ⇒ Object
- #remove ⇒ Object
Constructor Details
#initialize(storage, asset) ⇒ Processable
Returns a new instance of Processable.
5 6 7 8 |
# File 'lib/ratonvirus/processable.rb', line 5 def initialize(storage, asset) @storage = storage @asset = asset end |
Instance Method Details
#path(&block) ⇒ Object
10 11 12 13 14 |
# File 'lib/ratonvirus/processable.rb', line 10 def path(&block) return unless block_given? @storage.asset_path(@asset, &block) end |
#remove ⇒ Object
16 17 18 |
# File 'lib/ratonvirus/processable.rb', line 16 def remove @storage.asset_remove(@asset) end |