Sha256: 32d9a7d7ab738fffc6b83e30219840cb9d3ec456d35aa511c2862ae9858df837
Contents?: true
Size: 717 Bytes
Versions: 22
Compression:
Stored size: 717 Bytes
Contents
#!/usr/bin/env ruby require 'rubytext' # Remember: Specify STDOUT as needed! path = RubyText::Path cmd, arg = ARGV case cmd when nil STDOUT.puts "Usage: rubytext [demo|slides]" when "demo" system("ruby #{path}/../examples/demo.rb #{arg}") when "slides" system("#{path}/../examples/slides") when "tutorial" system("open #{path}/../tutorial/tutorial.html") when "example" if arg.nil? list = Dir["#{path}/../examples/**"] list.map! {|x| File.basename(x).sub(/.rb$/, "") } list = list - %w[check demo duh fixme hmmm ide multitest README showme slides] puts list else system("cd #{path}/../examples; ruby showme.rb #{arg}.rb pause; cd -") end end
Version data entries
22 entries across 22 versions & 1 rubygems