Sha256: 2b5e8d5074603a1a8ccdca54cf45a158ed1fa13acc8800a14465ed41ec0bf4ca
Contents?: true
Size: 710 Bytes
Versions: 6
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 # @version 0.3.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] # @param runtime_attributes [Array<Any>] # @return [void] # # @raise [SmartCore::Types::TypeCastingUnsupportedError] # # @pai private # @since 0.1.0 # @version 0.3.0 def call(value, runtime_attributes) raise(SmartCore::Types::TypeCastingUnsupportedError, <<~ERROR_MESSAGE) 'This type has no support for type casting' ERROR_MESSAGE end end
Version data entries
6 entries across 6 versions & 1 rubygems