Sha256: 1425117c1995af7f26e60b3c20fdedc648786ce8aed88c3ebea20f29259bf53a

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module MT940Structured::Parsers
  module StructuredDescriptionParser
    def parse_description_after_tag(description_parts, tag)
      description_start_index = description_parts.index { |part| part == tag }
      if description_start_index
        description_parts[description_start_index + 1].strip
      else
        ''
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zilverline-mt940-2.0 lib/mt940_structured/parsers/structured_description_parser.rb