Sha256: 82696fe986dc07bf3288c9d57e96279411cb821b81e5b83c04c4b4c86f1dff01
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResult module Entities class Result module Entities class Code module ClassMethods def cast(other) case other when ::String new(value: other.to_sym) when ::Symbol new(value: other) when Code new(value: other.value) end end end end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.1.0 | lib/convenient_service/service/plugins/has_result/entities/result/entities/code/class_methods.rb |