Module: Massimo::Resource::Processing::ClassMethods
- Defined in:
- lib/massimo/resource/processing.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#process! ⇒ Object
Process all the Resources in this Resource type’s directory.
-
#processable! ⇒ Object
This will override
processable?to returntrue. -
#processable? ⇒ Boolean
Determine if this Resource type is processable.
Class Method Details
.processable? ⇒ Boolean
16 17 18 |
# File 'lib/massimo/resource/processing.rb', line 16 def self.processable? true end |
Instance Method Details
#process! ⇒ Object
Process all the Resources in this Resource type’s directory.
22 23 24 |
# File 'lib/massimo/resource/processing.rb', line 22 def process! all(true).each(&:process!) end |
#processable! ⇒ Object
This will override processable? to return true.
15 16 17 18 19 |
# File 'lib/massimo/resource/processing.rb', line 15 def processable! def self.processable? true end end |
#processable? ⇒ Boolean
Determine if this Resource type is processable. By default this is false.
10 11 12 |
# File 'lib/massimo/resource/processing.rb', line 10 def processable? false end |