Sha256: 894b349ef198a3f8346068db9e01841113492c9498600511bcec0266dd76e5c3
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
require 'rubygems' require 'lib/parseitc' include ParseITC begin report = TrasactionParser.new('demo1.txt') report.add_file('demo2.txt') by_country = report.numbers_by_country by_country.sort.each {|k, v| puts "#{k}: #{v}"} by_date = report.numbers_by_date by_date.sort.each {|k, v| puts "#{k}: #{v}"} by_royalty_currency = report.numbers_by_price_tier by_royalty_currency.sort.each {|k, v| puts "#{k}: #{v}"} rescue Errno::ENOENT puts "The data file you specified was not found" rescue Errno::EACCES puts "The data file you specified is not readable" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parseitc-0.1 | demo.rb |