BasicObject
# File curses/rain.rb, line 7 def onsig(sig) close_screen exit sig end
# File curses/rain.rb, line 12 def ranf rand(32767).to_f / 32767 end
# File curses/hello.rb, line 6 def show_message(message) width = message.length + 6 win = Window.new(5, width, (lines - 5) / 2, (cols - width) / 2) win.box(||, --) win.setpos(2, 3) win.addstr(message) win.refresh win.getch win.close end
This page was generated for Ruby 1.9.2
Ruby-doc.org is a service of James Britt and Neurogami, an application development company in Scottsdale, AZ.
Generated with the Rubydoc Rdoc Generator 0.9.3.