Class: ASDeprecationTracker::Configuration
- Inherits:
-
Object
- Object
- ASDeprecationTracker::Configuration
- Defined in:
- lib/as_deprecation_tracker/configuration.rb
Overview
Maintains configuration for one instance (usually global)
Instance Attribute Summary collapse
-
#envs ⇒ Object
Returns the value of attribute envs.
-
#line_tolerance ⇒ Object
Returns the value of attribute line_tolerance.
-
#register_behavior ⇒ Object
(also: #register_behavior?)
Returns the value of attribute register_behavior.
-
#whitelist_file ⇒ Object
Returns the value of attribute whitelist_file.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/as_deprecation_tracker/configuration.rb', line 9 def initialize @envs = %w[test] @line_tolerance = 10 @register_behavior = ASDeprecationTracker.env('DISABLE').nil? @whitelist_file = File.join('config', 'as_deprecation_whitelist.yaml') end |
Instance Attribute Details
#envs ⇒ Object
Returns the value of attribute envs.
6 7 8 |
# File 'lib/as_deprecation_tracker/configuration.rb', line 6 def envs @envs end |
#line_tolerance ⇒ Object
Returns the value of attribute line_tolerance.
6 7 8 |
# File 'lib/as_deprecation_tracker/configuration.rb', line 6 def line_tolerance @line_tolerance end |
#register_behavior ⇒ Object Also known as: register_behavior?
Returns the value of attribute register_behavior.
6 7 8 |
# File 'lib/as_deprecation_tracker/configuration.rb', line 6 def register_behavior @register_behavior end |
#whitelist_file ⇒ Object
Returns the value of attribute whitelist_file.
6 7 8 |
# File 'lib/as_deprecation_tracker/configuration.rb', line 6 def whitelist_file @whitelist_file end |