Sha256: 4d1977b2f41d7cac168deada72d50ff2660a64b53b7d66b02eb27fdec23e2cae
Contents?: true
Size: 521 Bytes
Versions: 7
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 class SmartCore::Types::Primitive::SumFactory::DefinitionContext # @return [Proc] # # @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 'No caster definition block' unless block_given? @type_caster = caster end end
Version data entries
7 entries across 7 versions & 1 rubygems