module FullTableScanMatchers

Main module that holds global configuration.

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source

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

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

Updates the current configuration. @example

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

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

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