Class: GreenLog::JsonWriter
- Inherits:
-
Object
- Object
- GreenLog::JsonWriter
- Defined in:
- lib/green_log/json_writer.rb
Overview
A JSON-formated log.
Instance Attribute Summary collapse
-
#dest ⇒ Object
readonly
Returns the value of attribute dest.
Instance Method Summary collapse
- #<<(entry) ⇒ Object
-
#initialize(dest) ⇒ JsonWriter
constructor
A new instance of JsonWriter.
Constructor Details
#initialize(dest) ⇒ JsonWriter
Returns a new instance of JsonWriter.
12 13 14 |
# File 'lib/green_log/json_writer.rb', line 12 def initialize(dest) @dest = dest end |
Instance Attribute Details
#dest ⇒ Object (readonly)
Returns the value of attribute dest.
16 17 18 |
# File 'lib/green_log/json_writer.rb', line 16 def dest @dest end |