Class: BankAccountStatement::Inputs::TXT::Base
- Defined in:
- lib/bank-account-statement/inputs/TXT/base.rb
Direct Known Subclasses
Constant Summary collapse
- FILE_EXT =
'.txt'.freeze
Instance Method Summary collapse
-
#initialize(txt) ⇒ Base
constructor
A new instance of Base.
Methods inherited from Base
Constructor Details
#initialize(txt) ⇒ Base
Returns a new instance of Base.
12 13 14 15 |
# File 'lib/bank-account-statement/inputs/TXT/base.rb', line 12 def initialize(txt) @doc = txt.split("\n").map(&:rstrip) @doc_e = @doc.reject(&:empty?) end |