From: Masao M. <mu...@hi...> - 2002-07-28 04:07:15
|
Hi, On Tue, 23 Jul 2002 14:53:41 +0900 Masao Mutoh <mu...@hi...> wrote: > * Return values > Gnome.init return Hash value. > There are two types of return value. 1st is option type, and other is no option type. > > ruby test.rb --label="Hello World" hoge fuga > > In this example, --label="Hello World" is option type, and hoge, fuga is no option type. > > option type can get value by longName. > args["label"] #=> "Hello World". > > no option type get array by "args" > args["args"] #=> ["hoge", "fuga"] > > "args" is reserved, so you can't use "args" for your own option. I changed "args" to "", so you can use all of words what you want. Cheers, -- .:% Masao Mutoh<mu...@hi...> |