# To change this template, choose Tools | Templates # and open the template in the editor. puts "Hello World" require 'rubygems' require 'progressbar' require 'raystest' rs = Raystest::RaysClass.new rs.do_print_stars bar = ProgressBar.new("Example progress", 50) total = 0 until total >= 50 sleep(rand(2)/2.0) increment = (rand(6) + 3) bar.inc(increment) total += increment end puts '---done---'