Class: Torkify::Log::Parser
- Inherits:
-
Object
- Object
- Torkify::Log::Parser
- Defined in:
- lib/torkify/log/parser.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(stream) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
9 10 11 |
# File 'lib/torkify/log/parser.rb', line 9 def errors @errors end |
Instance Method Details
#parse ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/torkify/log/parser.rb', line 16 def parse parse_log self rescue EOFError # noop self rescue Exception => e # Tag all exceptions with Torkify::Error e.extend Error raise e end |