Module: Dry::Monads::RSpec::Matchers Private
- Extended by:
- RSpec::Matchers::DSL
- Defined in:
- lib/dry/monads/extensions/rspec.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- PREDICATES =
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.
{ failure: { expected_classes: [ ::Dry::Monads::Result::Failure, ::Dry::Monads::Maybe::None, ::Dry::Monads::Try::Error ], extract_value: :failure.to_proc }, success: { expected_classes: [ ::Dry::Monads::Result::Success, ::Dry::Monads::Maybe::Some, ::Dry::Monads::Try::Value ], extract_value: :value!.to_proc }, some: { expected_classes: [::Dry::Monads::Maybe::Some], extract_value: :value!.to_proc } }.freeze
- CONSTRUCTOR_CLASSES =
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.
PREDICATES.values.flat_map { |definition| definition[:expected_classes] }.freeze