Sha256: e74b42f301c5799bead77960d185cf0dad4cba60cc9162751a9f1ed3a33ab1a2
Contents?: true
Size: 602 Bytes
Versions: 6
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 # @version 0.3.0 class SmartCore::Types::Primitive::Caster # @param expression [Proc] # @return [void] # # @api private # @since 0.1.0 def initialize(expression) @expression = expression end # @param value [Any] # @param runtime_attributes [Array<Any>] # @return [Any] # # @api private # @since 0.1.0 # @version 0.3.0 def call(value, runtime_attributes) expression.call(value, runtime_attributes) end private # @return [Proc] # # @api private # @since 0.1.0 attr_reader :expression end
Version data entries
6 entries across 6 versions & 1 rubygems