module DBQueryMatchers

Main module that holds global configuration.

Defines the gem version.

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source

Gets the current configuration @return [DBQueryMatchers::Configuration] the active configuration

# File lib/db_query_matchers.rb, line 15
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source

Updates the current configuration. @example

DBQueryMatchers.configure do |config|
  config.ignores = [/SELECT.*FROM.*users/]
end
# File lib/db_query_matchers.rb, line 31
def self.configure
  yield(configuration)
end
reset_configuration() click to toggle source

Resets the current configuration. @return [DBQueryMatchers::Configuration] the active configuration

# File lib/db_query_matchers.rb, line 21
def self.reset_configuration
  @configuration = Configuration.new
end