Class: RSpec::SleepingKingStudios::Configuration::Matchers

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/sleeping_king_studios/configuration.rb

Overview

Configuration options for RSpec::SleepingKingStudios::Matchers.

Instance Method Summary collapse

Instance Method Details

#strict_predicate_matchingBoolean

Checks whether predicates are matched “strictly”, meaning that they must return either true or false.

Returns:

  • (Boolean)

    True if predicates are strictly matched, otherwise false.



77
78
79
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 77

def strict_predicate_matching
  @strict_predicate_matching ||= false
end

#strict_predicate_matching=(value) ⇒ Object

Sets whether predicates are matched “strictly”, meaning that they must return either true or false.

Parameters:

  • value (Boolean)

    The desired value. Is coerced to true or false.



85
86
87
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 85

def strict_predicate_matching= value
  @strict_predicate_matching = !!value
end