Sha256: cbb923f2c01f5c4f738bc016a42394a128f2de143ef05611d428b5c9bebe025e

Contents?: true

Size: 214 Bytes

Versions: 7

Compression:

Stored size: 214 Bytes

Contents

# frozen_string_literal: true

# @api public
# @since 0.1.0
SmartCore::Types::Value.define_type(:String) do |type|
  type.define_checker do |value|
    value.is_a?(::String)
  end

  type.define_caster(&:to_s)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smart_types-0.1.0.alpha6 lib/smart_core/types/value/string.rb
smart_types-0.1.0.alpha5 lib/smart_core/types/value/string.rb
smart_types-0.1.0.alpha4 lib/smart_core/types/value/string.rb
smart_types-0.1.0.alpha3 lib/smart_core/types/value/string.rb
smart_types-0.1.0.alpha2 lib/smart_core/types/value/string.rb
smart_types-0.1.0.alpha lib/smart_core/types/value/string.rb
smart_types-0.0.0 lib/smart_core/types/value/string.rb