Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service::Concern::ClassMethods

Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#cast(other) ⇒ ConvenientService::Service::Plugins::CanHaveSteps::Entities::Service?

Parameters:

  • other (Object)

    Can be any type.

Returns:



15
16
17
18
19
20
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/class_methods.rb', line 15

def cast(other)
  case other
  when ::Class then cast_klass(other)
  when Service then cast_service(other)
  end
end