Sha256: 5296015fcd24171e939188a78217f63b660c5589485f6e0ce173bf1a5720da75
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
#! /home/cout/.rvm/rubies/ruby-1.9.2-p318/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.7.3 | bin/ruby-internal-node-dump |