Class: Cuscuz::Operation
- Inherits:
-
Object
- Object
- Cuscuz::Operation
- Extended by:
- Literal::Properties
- Defined in:
- lib/cuscuz/operation.rb
Defined Under Namespace
Modules: Executor
Constant Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
9 |
# File 'lib/cuscuz/operation.rb', line 9 def self.call(...) = new(...).call |
.call! ⇒ Object
11 |
# File 'lib/cuscuz/operation.rb', line 11 def self.call!(...) = new(...).call! |
.inherited(operation) ⇒ Object
13 14 15 16 17 |
# File 'lib/cuscuz/operation.rb', line 13 def self.inherited(operation) super operation.prepend(Executor) end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/cuscuz/operation.rb', line 19 def call raise NoMethodError, "`#call` instance method should be implemented in #{self.class.name}" end |