Sha256: 9004f04606f82ed394070251fc59e2e5f244fa7188585e08cd65e23c81ee8f55

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
class SmartCore::Types::Primitive::UndefinedCaster
  # @param value [Any]
  # @return [void]
  #
  # @raise [SmartCore::Types::TypeCastingError]
  #
  # @pai private
  # @since 0.1.0
  def call(value)
    raise(
      SmartCore::Types::TypeCastingError,
      'This type has no support for type casting'
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smart_types-0.0.0 lib/smart_core/types/primitive/undefined_caster.rb