Sha256: 0e5b5fc30761374cf96bf41262e555f2fbb065c95550ececc8b8a9fa5de9d4f9
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true # @pai private # @since 0.1.0 class SmartCore::Initializer::Attribute::Finalizer::AnonymousBlock # @param finalizer [Proc] # @return [void] # # @api private # @since 0.1.0 def initialize(finalizer) @finalizer = finalizer end # @param value [Any] # @param isntance [Any] # @return [value] # # @pai private # @since 0.1.0 def call(value, instance) instance.instance_exec(value, &finalizer) end private # @return [NilClass, Any] # # @api private # @since 0.1.0 attr_reader :finalizer end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_initializer-0.0.0 | lib/smart_core/initializer/attribute/finalizer/anonymous_block.rb |