Class: Derelict::Parser
- Inherits:
-
Object
- Object
- Derelict::Parser
- Includes:
- Utils::Logger
- Defined in:
- lib/derelict/parser.rb,
lib/derelict/parser/status/invalid_format.rb,
lib/derelict/parser/version/invalid_format.rb,
lib/derelict/parser/box_list/invalid_format.rb,
lib/derelict/parser/plugin_list/invalid_format.rb,
lib/derelict/parser/plugin_list/needs_reinstall.rb
Overview
Base class for parsers, which extract data from command output
Direct Known Subclasses
Defined Under Namespace
Classes: BoxList, PluginList, Status, Version
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#description ⇒ Object
Provides a description of this Parser.
-
#initialize(output) ⇒ Parser
constructor
Initializes the parser with the output it will be parsing.
Methods included from Utils::Logger
Constructor Details
#initialize(output) ⇒ Parser
Initializes the parser with the output it will be parsing
15 16 17 18 |
# File 'lib/derelict/parser.rb', line 15 def initialize(output) @output = output logger.debug "Successfully initialized #{description}" end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
12 13 14 |
# File 'lib/derelict/parser.rb', line 12 def output @output end |
Instance Method Details
#description ⇒ Object
Provides a description of this Parser
Mainly used for log messages.
23 24 25 |
# File 'lib/derelict/parser.rb', line 23 def description "Derelict::Parser (unknown type)" end |