Sha256: 202ea03e918a4eac6cf521d8a6d68e64eb017bb6a829108ff9cb8b69878a366c
Contents?: true
Size: 581 Bytes
Versions: 23
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Common module Plugins module HasCallbacks module Entities class Type module ClassMethods 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 end end end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems