Class: SmartCore::Types::Primitive::Checker Private
- Inherits:
-
Object
- Object
- SmartCore::Types::Primitive::Checker
- Defined in:
- lib/smart_core/types/primitive/checker.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #call(value, runtime_attributes) ⇒ Boolean private
- #initialize(expression) ⇒ void constructor private
Constructor Details
#initialize(expression) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/smart_core/types/primitive/checker.rb', line 12 def initialize(expression) @expression = expression end |
Instance Method Details
#call(value, runtime_attributes) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/smart_core/types/primitive/checker.rb', line 23 def call(value, runtime_attributes) !!expression.call(value, runtime_attributes) end |