Class: BankAccountStatement::Inputs::TXT::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/bank-account-statement/inputs/TXT/base.rb

Direct Known Subclasses

CPBKGB22::Business::Base

Constant Summary collapse

FILE_EXT =
'.txt'.freeze

Instance Method Summary collapse

Methods inherited from Base

formats, inherited, #parse

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