Sha256: 8fc76cede0a205b06f2ef7f7d9a52a09a5a8f70cc0ce88b731abdf60e52efe03
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
#! /home/cout/.rvm/rubies/ruby-1.8.7-p358/bin/ruby require 'pp' require 'internal/node/pp' require 'optparse' dash_e = [] args = ARGV opts = OptionParser.new do |opts| opts.banner = "Usage: #{$0} [switches] [--] [programfile] [arguments]" opts.summary_width = 15 opts.summary_indent = ' ' opts.on( "-e line", "one line of script. Several -e's allowed. Omit [programfile]") do |line| dash_e << line end opts.order!(args) do |arg| args.unshift arg opts.terminate end end if dash_e.size > 0 then str = dash_e.join("\n") else filename = ARGV[0] str = File.read(filename) end node = Node.compile_string(str) pp node
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-internal-0.8.0 | bin/ruby-internal-node-dump |