TK grid error

Just trying a TK example i found and i get an error
####code
br = ["one", "and", "one"].collect { |c|
  TkButton.new(root, "text"=>c)
}
TkGrid.grid(br[0], br[1], br[2], "columnspan"=>2 )

TkButton.new(root, "text"=>"is").grid("columnspan"=>3, "sticky"=>"ew")
TkButton.new(root, "text"=>"two").grid("row"=>1, "col"=>3, "columnspan"=>3)

Tk.mainloop

####code

The error is
Z:/ruby/playfair_final.rb:56: undefined method `grid' for
TkGrid:Module (NoMethodError)
Becker

Hi,

···

From: STEPHEN BECKER I V <Becker004@gmail.com>
Subject: TK grid error.
Date: Thu, 30 Sep 2004 23:21:00 +0900
Message-ID: <3703ec2d040930072048759beb@mail.gmail.com>

Just trying a TK example i found and i get an error

   (snip)

TkGrid.grid(br[0], br[1], br[2], "columnspan"=>2 )

Thank you for your report.
If you don't mind changing the script, please use
Tk.grid or TkGrid.configure.
I'll revive TkGrid.grid, TkPack.pack and TkPlace.place
by reason of backward-compatibility.
--
                                  Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)