Class: Alephant::Logger::JSONtoIO
- Defined in:
- lib/alephant/logger/json_to_io.rb
Constant Summary
Constants inherited from JSON
Alephant::Logger::JSON::VERSION
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(output, options = {}) ⇒ JSONtoIO
constructor
A new instance of JSONtoIO.
Methods inherited from JSON
Constructor Details
#initialize(output, options = {}) ⇒ JSONtoIO
Returns a new instance of JSONtoIO.
9 10 11 12 13 14 |
# File 'lib/alephant/logger/json_to_io.rb', line 9 def initialize(output, = {}) @output = output @nesting = .fetch(:nesting, false) @write_level = .fetch(:level, :debug) self.class.session = -> { 'n/a' } unless self.class.session? end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
7 8 9 |
# File 'lib/alephant/logger/json_to_io.rb', line 7 def output @output end |