tk Module

Write Ruby program which uses tk module to display a window.
tkModule.rb
require 'tk'
root = TkRoot.new { title "Hello, World!" }
TkLabel.new(root) do
text 'Hello, RISE!'
pack { padx 15 ; pady 15; side 'left' }
end
Tk.mainloop
OUTPUT