Class: LogAnalyzer::Configuration
- Inherits:
-
Object
- Object
- LogAnalyzer::Configuration
- Defined in:
- lib/log_analyzer/configuration.rb
Constant Summary collapse
- ALL =
ALL
'A'.freeze
- PARTIALS =
Partials
'P'.freeze
- VIEWS =
Views
'V'.freeze
- FILTERS =
Hash.new([PARTIALS, VIEWS]).merge({ PARTIALS => [PARTIALS], VIEWS => [VIEWS] }).freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
19 20 21 |
# File 'lib/log_analyzer/configuration.rb', line 19 def initialize @filter = ALL end |
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/log_analyzer/configuration.rb', line 13 def configuration @configuration end |
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
16 17 18 |
# File 'lib/log_analyzer/configuration.rb', line 16 def filter @filter end |
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
17 18 19 |
# File 'lib/log_analyzer/configuration.rb', line 17 def filters @filters end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
36 37 38 |
# File 'lib/log_analyzer/configuration.rb', line 36 def self.configure yield(configuration) end |
.reset ⇒ Object
32 33 34 |
# File 'lib/log_analyzer/configuration.rb', line 32 def self.reset @configuration = Configuration.new end |