Class: SmartCore::Types::Primitive::NilableValidator::Result Private
- Inherits:
-
Object
- Object
- SmartCore::Types::Primitive::NilableValidator::Result
- Defined in:
- lib/smart_core/types/primitive/nilable_validator/result.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.
Constant Summary collapse
- NO_INVARIANT_ERRORS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[].freeze
Instance Attribute Summary collapse
- #checked_value ⇒ Any (also: #value) readonly
- #type ⇒ SmartCore::Types::Primitive readonly
Instance Method Summary collapse
- #failure? ⇒ Boolean
- #initialize(type, checked_value) ⇒ void constructor private
- #invariant_errors ⇒ Array (also: #errors, #error_codes)
- #is_valid_check ⇒ Boolean (also: #valid_check?)
- #success? ⇒ Boolean
- #valid_invariants? ⇒ Boolean
Constructor Details
#initialize(type, checked_value) ⇒ 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.
31 32 33 34 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 31 def initialize(type, checked_value) @type = type @checked_value = checked_value end |
Instance Attribute Details
#checked_value ⇒ Any (readonly) Also known as: value
22 23 24 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 22 def checked_value @checked_value end |
#type ⇒ SmartCore::Types::Primitive (readonly)
16 17 18 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 16 def type @type end |
Instance Method Details
#failure? ⇒ Boolean
75 76 77 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 75 def failure? false end |
#invariant_errors ⇒ Array Also known as: errors, error_codes
49 50 51 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 49 def invariant_errors NO_INVARIANT_ERRORS end |
#is_valid_check ⇒ Boolean Also known as: valid_check?
40 41 42 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 40 def is_valid_check true end |
#success? ⇒ Boolean
67 68 69 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 67 def success? true end |
#valid_invariants? ⇒ Boolean
59 60 61 |
# File 'lib/smart_core/types/primitive/nilable_validator/result.rb', line 59 def valid_invariants? true end |