Sha256: aa0c1ca48ac977e867349c7138bc8b840f081f981bd5584c5b1548a9bf9d36d2
Contents?: true
Size: 668 Bytes
Versions: 2
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module CanHaveSteps module Entities class Service module ClassMethods def cast(other) case other when ::Class then cast_klass(other) when Service then cast_service(other) end end private def cast_klass(klass) new(klass) end def cast_service(service) new(service.klass) end end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems