Class: RSpec::SleepingKingStudios::Configuration

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

Overview

Configuration options for RSpec::SleepingKingStudios.

Defined Under Namespace

Classes: Examples, Matchers

Instance Method Summary collapse

Instance Method Details

#examplesObject

Get or set the configuration options for RSpec::SleepingKingStudios::Examples.



133
134
135
136
137
138
139
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 133

def examples(&)
  @examples ||= RSpec::SleepingKingStudios::Configuration::Examples.new

  @examples.instance_eval(&) if block_given?

  @examples
end

#matchersObject

Get or set the configuration options for RSpec::SleepingKingStudios::Matchers.



143
144
145
146
147
148
149
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 143

def matchers(&)
  @matchers ||= RSpec::SleepingKingStudios::Configuration::Matchers.new

  @matchers.instance_eval(&) if block_given?

  @matchers
end