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

#examples(&block) ⇒ Object

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


125
126
127
128
129
130
131
# File 'lib/rspec/sleeping_king_studios/configuration.rb', line 125

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

  @examples.instance_eval(&block) if block_given?

  @examples
end

#matchers(&block) ⇒ Object

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


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

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

  @matchers.instance_eval(&block) if block_given?

  @matchers
end