Class: MiniAether::LoggerConfig
- Inherits:
-
Object
- Object
- MiniAether::LoggerConfig
- Defined in:
- lib/mini_aether.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
Instance Method Summary collapse
- #info? ⇒ Boolean
-
#initialize ⇒ LoggerConfig
constructor
A new instance of LoggerConfig.
Constructor Details
#initialize ⇒ LoggerConfig
Returns a new instance of LoggerConfig.
13 14 15 |
# File 'lib/mini_aether.rb', line 13 def initialize @level = 'INFO' end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
11 12 13 |
# File 'lib/mini_aether.rb', line 11 def level @level end |
Instance Method Details
#info? ⇒ Boolean
34 35 36 37 38 39 40 41 |
# File 'lib/mini_aether.rb', line 34 def info? case @level when 'INFO', 'DEBUG' true else false end end |