module DebugMethods

Constants

VERSION

Public Class Methods

allowed_environment?() click to toggle source
# File lib/debug_methods.rb, line 18
def self.allowed_environment?
  defined?(Rails) && DebugMethods.configuration.environments.any? do |env|
    Rails.env.send(:"#{env}?")
  end
end
configuration() click to toggle source
# File lib/debug_methods.rb, line 14
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/debug_methods.rb, line 10
def self.configure
  yield(configuration)
end
included(base) click to toggle source
# File lib/debug_methods.rb, line 6
def self.included(base)
  base.extend ClassMethods
end