Sha256: 7ba7c4c690c80068edcca473b0a6c5ec2824b77fdac2417c299b8e1cfe731fcd
Contents?: true
Size: 609 Bytes
Versions: 6
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 # @version 0.3.0 class SmartCore::Types::Primitive::Checker # @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 [Boolean] # # @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