Module: DebugMethods
- Defined in:
- lib/debug_methods.rb,
lib/debug_methods/version.rb,
lib/debug_methods/configuration.rb
Defined Under Namespace
Modules: ClassMethods
Classes: Configuration
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.allowed_environment? ⇒ Boolean
18
19
20
21
22
|
# 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 ⇒ Object
14
15
16
|
# File 'lib/debug_methods.rb', line 14
def self.configuration
@configuration ||= Configuration.new
end
|
10
11
12
|
# File 'lib/debug_methods.rb', line 10
def self.configure
yield(configuration)
end
|
.included(base) ⇒ Object
6
7
8
|
# File 'lib/debug_methods.rb', line 6
def self.included(base)
base.extend ClassMethods
end
|