Sha256: 266a0b42703b4e6e728d3497f383b86ca5e975ed541925b9f2ff1233dbf0db8e
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 class SmartCore::Types::Primitive::Factory::DefinitionContext # @return [Proc, NilClass] # # @api private # @since 0.1.0 attr_reader :type_caster # @return [void] # # @api private # @since 0.1.0 def initialize @type_caster = nil end # @param caster [Block] # @return [void] # # @api public # @since 0.1.0 def define_caster(&caster) raise(SmartCore::ArgumentError, 'No caster definition block') unless block_given? @type_caster = caster end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_types-0.1.0 | lib/smart_core/types/primitive/mult_factory/definition_context.rb |