Class: RSpec::SleepingKingStudios::Configuration
- Inherits:
-
Object
- Object
- RSpec::SleepingKingStudios::Configuration
- Defined in:
- lib/rspec/sleeping_king_studios/configuration.rb
Overview
Configuration options for RSpec::SleepingKingStudios.
Defined Under Namespace
Instance Method Summary collapse
-
#examples(&block) ⇒ Object
Get or set the configuration options for RSpec::SleepingKingStudios::Examples.
-
#matchers(&block) ⇒ Object
Get or set the configuration options for RSpec::SleepingKingStudios::Matchers.
Instance Method Details
#examples(&block) ⇒ Object
Get or set the configuration options for RSpec::SleepingKingStudios::Examples.
92 93 94 95 96 97 98 |
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 92 def examples &block (@examples ||= RSpec::SleepingKingStudios::Configuration::Examples.new).tap do |config| if block_given? config.instance_eval &block end # if end # tap end |
#matchers(&block) ⇒ Object
Get or set the configuration options for RSpec::SleepingKingStudios::Matchers.
102 103 104 105 106 107 108 |
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 102 def matchers &block (@matchers ||= RSpec::SleepingKingStudios::Configuration::Matchers.new).tap do |config| if block_given? config.instance_eval &block end # if end # tap end |