File: example_runner.rb

package info (click to toggle)
ruby-parslet 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,260 kB
  • sloc: ruby: 6,157; sh: 8; javascript: 3; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

require 'case'
require 'text/highlight'

require 'document'
require 'example'

class ExampleRunner
  def run(args)
    Dir[File.join(args.last, '*.textile')].each do |name|
      puts name.white
      Document.new(name).process
    end
  end
end

if $0 == __FILE__
  ExampleRunner.new.run(ARGV)
end