Module: RBM
- Defined in:
- lib/rbm.rb,
lib/rbm/version.rb,
lib/rbm/benchmarker.rb
Defined Under Namespace
Classes: Benchmarker, BenchmarkerSyntaxError
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.start ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rbm.rb', line 6 def start fragments, = (ARGV) if load_paths = .delete(:load_paths) $LOAD_PATH.concat(load_paths) end begin if requires = .delete(:requires) requires.each { |r| require(r) } end rescue LoadError => e puts e exit end begin Benchmarker.new(fragments, ).run rescue BenchmarkerSyntaxError => e puts e exit end end |