Sha256: 365e1824fb195108d9219b5c4c5384b14baa0a183cbd13edef3697c2993c2dd7

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require "bankgiro_inbetalningar/version"
require "bankgiro_inbetalningar/bgmax_line"
require "bankgiro_inbetalningar/parser"

module BankgiroInbetalningar
  def self.parse(filename)
    data = File.read(filename).force_encoding("ISO-8859-1")
    parse_data(data)
  end

  def self.parse_data(data)
    parser = Parser.new(data)
    parser.run
    parser.result
  end

  class << self
    alias parse_file parse
    alias parse_string parse_data
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bankgiro_inbetalningar-1.2.0 lib/bankgiro_inbetalningar.rb