Sha256: d5d27d66a64b63a302b4dac8d95232af88850cc005d43cdb886199b17ac3abb2
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 class SmartCore::Types::Primitive::UndefinedCaster < SmartCore::Types::Primitive::Caster # @param expression [NilClass, Any] # @return [void] # # @api private # @since 0.1.0 def initialize(expression = nil) super end # @param value [Any] # @return [void] # # @raise [SmartCore::Types::TypeCastingUnsupportedError] # # @pai private # @since 0.1.0 def call(value) raise(SmartCore::Types::TypeCastingUnsupportedError, <<~ERROR_MESSAGE) 'This type has no support for type casting' ERROR_MESSAGE end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smart_types-0.2.0 | lib/smart_core/types/primitive/undefined_caster.rb |
smart_types-0.1.0 | lib/smart_core/types/primitive/undefined_caster.rb |