Sha256: 6805887dd4ce11272665749371e9c1629ca121af3bd745e775dfec5888e97a87
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 Bytes
Contents
#!/usr/bin/env ruby # # untitled # # Created by Dan MacLean (TSL) on 2012-09-30. # Copyright (c) . All rights reserved. ################################################### require 'optparse' options ={} optparse = OptionParser.new do|opts| opts.on( '-j', '--json_file FILE', ' name of JSON config file' ) do |j| options[:json] = j end opts.on( '-o', '--svg_file FILE', ' name of SVG outfile' ) do |s| options[:svg] = s end # This displays the help screen, all programs are # assumed to have this option. opts.on( '-h', '--help', 'Display this screen' ) do puts opts exit end end optparse.parse! require 'bio-svgenes' Bio::Graphics::Page.from_json(:json => options[:json], :outfile => options[:svg] )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bio-svgenes-0.2.1 | examples/draw_from_json.rb |
bio-svgenes-0.2.0 | examples/draw_from_json.rb |