Class: Feedx::Format::Abstract::Wrapper
- Inherits:
-
Object
- Object
- Feedx::Format::Abstract::Wrapper
- Defined in:
- lib/feedx/format/abstract.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(io) ⇒ Wrapper
constructor
A new instance of Wrapper.
Constructor Details
#initialize(io) ⇒ Wrapper
Returns a new instance of Wrapper.
18 19 20 |
# File 'lib/feedx/format/abstract.rb', line 18 def initialize(io, **) @io = io end |
Class Method Details
.open(io, **opts) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/feedx/format/abstract.rb', line 11 def self.open(io, **opts) inst = new(io, **opts) yield inst ensure inst&.close end |