Class: Algoheader::ServiceObject
- Inherits:
-
Object
- Object
- Algoheader::ServiceObject
- Defined in:
- lib/algoheader/service_object.rb
Overview
ServiceObject
- Author
-
Dick Davis
- Copyright
-
Copyright 2021 Dick Davis
- License
-
GNU Public License 3
Superclass for classes using the service object design pattern.
Direct Known Subclasses
Class Method Summary collapse
-
.call(*args, **kwargs, &block) ⇒ Object
Allows subclasses to be initialized and called at the same time.
Class Method Details
.call(*args, **kwargs, &block) ⇒ Object
Allows subclasses to be initialized and called at the same time.
31 32 33 |
# File 'lib/algoheader/service_object.rb', line 31 def self.call(*args, **kwargs, &block) new(*args, **kwargs, &block).call end |