[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03970] Re: Tk PhotoImage options

From: Andrew Hunt <andy@...>
Date: 2000-07-13 12:07:15 UTC
List: ruby-talk #3970
	>With the following patch,
	>
	>		image_widget.copy(new_img, 'subsample' => [8 8])
	>
	>would work.
	>
	>--- /usr/lib/ruby/1.4/tk.rb	Tue May  9 13:50:41 2000
	

Many thanks!  Works a treat.  But shouldn't "filter":

	>   def tk_call(*args)
	>     print args.join(" "), "\n" if $DEBUG
	>-    args.filter {|x|_get_eval_string(x)}
	>+    args.filter {|x|ruby2tcl(x)}
	>     args.compact!
	>     args.flatten!

Be "collect!" instead? (At least for 1.5?)

/\ndy

In This Thread

Prev Next