Class: Logbert::Handlers::LocaltimeFormatter
- Inherits:
-
Object
- Object
- Logbert::Handlers::LocaltimeFormatter
- Defined in:
- lib/logbert/handlers/time_rotator.rb
Instance Attribute Summary collapse
-
#format(time) ⇒ Object
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(format = "%Y-%m-%d-%H%M") ⇒ LocaltimeFormatter
constructor
A new instance of LocaltimeFormatter.
Constructor Details
#initialize(format = "%Y-%m-%d-%H%M") ⇒ LocaltimeFormatter
Returns a new instance of LocaltimeFormatter.
13 14 15 |
# File 'lib/logbert/handlers/time_rotator.rb', line 13 def initialize(format = "%Y-%m-%d-%H%M") @format = format end |
Instance Attribute Details
#format(time) ⇒ Object
Returns the value of attribute format.
11 12 13 |
# File 'lib/logbert/handlers/time_rotator.rb', line 11 def format @format end |