How to examine method signature ? (via Ruby introspection ?)

Hi,

···

From: peterjohannsen@hotmail.com (pj)
Subject: How to examine method signature ? (via Ruby introspection ?)
Date: Tue, 11 Mar 2003 07:48:29 +0900
Message-ID: 127ce4a9.0303101439.462c3f11@posting.google.com

image = TkPhotoImage.new() { file “background.gif”; height 50 }

The height of a TkPhotoImage object is determined at creating the object.
You cannot set the height of the image, because the block option of
‘new’ method is executed after creating.
So, you must give the height by the Hash argument of ‘new’ method.

image = TkPhotoImage.new(‘file’=>“background.gif”, ‘height’=>50)

A Hash argument is used at the same time of widget creation.

                              Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)