Sha256: d9dc599fb451ff5bb915b5ab81b9fe782417f52afa8fe61caad39046ad3b8c92
Contents?: true
Size: 237 Bytes
Versions: 1
Compression:
Stored size: 237 Bytes
Contents
# frozen_string_literal: true # @api public # @since 0.1.0 SmartCore::Types::Value.define_type(:Text) do |type| type.define_checker do |value| value.is_a?(::String) || value.is_a?(::Symbol) end type.define_caster(&:to_s) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_types-0.0.0 | lib/smart_core/types/value/text.rb |