Module: ConvenientService::Common::Plugins::CanHaveCallbacks::Entities::Type::Concern Private
- Includes:
- Support::Concern
- Defined in:
- lib/convenient_service/common/plugins/can_have_callbacks/entities/type/concern.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.
Class Method Summary collapse
Methods included from Support::Concern
Class Method Details
.cast(other) ⇒ ConvenientService::Common::Plugins::CanHaveCallbacks::Entities::Type?
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.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/convenient_service/common/plugins/can_have_callbacks/entities/type/concern.rb', line 22 def cast(other) case other when ::Symbol Type.new(value: other) when ::String Type.new(value: other.to_sym) when Type Type.new(value: other.value) end end |