Class: Fibrio::Parsers::Base
- Inherits:
-
Object
- Object
- Fibrio::Parsers::Base
- Defined in:
- lib/fibrio/parsers/base.rb
Constant Summary collapse
- WHITESPACE =
[' ', "\t", "\n", "\r"].freeze
Instance Method Summary collapse
- #close ⇒ void
-
#initialize(source, **options) ⇒ Base
constructor
A new instance of Base.
- #run {|record| ... } ⇒ Object
Constructor Details
#initialize(source, **options) ⇒ Base
Returns a new instance of Base.
10 11 12 13 |
# File 'lib/fibrio/parsers/base.rb', line 10 def initialize(source, **) @source = source @options = end |
Instance Method Details
#close ⇒ void
This method returns an undefined value.
21 22 23 |
# File 'lib/fibrio/parsers/base.rb', line 21 def close @source.close end |
#run {|record| ... } ⇒ Object
16 17 18 |
# File 'lib/fibrio/parsers/base.rb', line 16 def run raise NotImplementedError end |