Class: Spandx::Os::Parsers::Dpkg::LineReader
- Inherits:
-
Object
- Object
- Spandx::Os::Parsers::Dpkg::LineReader
- Defined in:
- lib/spandx/os/parsers/dpkg.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(io) ⇒ LineReader
constructor
A new instance of LineReader.
Constructor Details
#initialize(io) ⇒ LineReader
Returns a new instance of LineReader.
10 11 12 |
# File 'lib/spandx/os/parsers/dpkg.rb', line 10 def initialize(io) @io = io end |
Instance Attribute Details
#io ⇒ Object (readonly)
Returns the value of attribute io.
8 9 10 |
# File 'lib/spandx/os/parsers/dpkg.rb', line 8 def io @io end |
Instance Method Details
#each ⇒ Object
14 15 16 |
# File 'lib/spandx/os/parsers/dpkg.rb', line 14 def each yield read_package(io, Hash.new(''), nil) until io.eof? end |