Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service::Concern::ClassMethods Private
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/class_methods.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#cast(other) ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 23 24 25 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/class_methods.rb', line 20 def cast(other) case other when ::Class then new(other) when Service then new(other.klass) end end |