#!/usr/bin/env ruby require "bundler/setup" require 'litexbrl' require 'pry' require "awesome_print" def doc(path) File.open(path) {|f| Nokogiri::XML(f) } end def read(path) File.open(path) {|f| f.read } end def dir File.expand_path '../../spec/data/tdnet/summary', __FILE__ end xbrl = LiteXBRL::TDnet.parse_cash_flow read(ARGV[0]) ap xbrl