class Algoheader::ServiceObject

ServiceObject

Author

Dick Davis

Copyright

Copyright 2021 Dick Davis

License

GNU Public License 3

Superclass for classes using the service object design pattern.

Public Class Methods

call(*args, **kwargs, &block) click to toggle source

Allows subclasses to be initialized and called at the same time.

# File lib/algoheader/service_object.rb, line 31
def self.call(*args, **kwargs, &block)
  new(*args, **kwargs, &block).call
end