module Commons::Services::Concerns::Callable
Public Instance Methods
call(*args, **kwargs)
click to toggle source
# File lib/commons/services/concerns/callable.rb, line 8 def call(*args, **kwargs) # This approach allows thge class initializer to use regular arguments, # named argumets or the mix of both. # This at the same time allows the usage of Dry::Initializer # https://dry-rb.org/gems/dry-initializer/3.0/ # And perhaps this can eventually be a defualt part of Callable Module new(*args, **kwargs).call end