Sha256: 7014244a5703c5c699e635254b1e13a36277d5b4878fc939a9b84cdd9ecfacad

Contents?: true

Size: 213 Bytes

Versions: 7

Compression:

Stored size: 213 Bytes

Contents

# frozen_string_literal: true

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

  type.define_caster(&:to_proc)
end

Version data entries

7 entries across 7 versions & 1 rubygems

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