Projects

Ticket #367 (closed defect: invalid)

Opened 2 years ago

Last modified 18 months ago

Error in color.rb

Reported by: i.script@… Owned by: rich@…
Priority: blocker Milestone: MacRuby 0.5
Component: MacRuby Keywords: Hotcocoa Color Error
Cc:

Description

The file color.rb inside the hotcocoa/graphics directors is using a wrong class method!

Following code has to be changed:

COLORNAMES.each_key do |name|

(class << self; self; end).define_method(name) do

named(name)

end

end

In this case define_singleton_method is the way to go.

COLORNAMES.each_key do |name|

(class << self; self; end).define_singleton_method(name) do

named(name)

end

end

Tom Fuerstner

Change History

Changed 2 years ago by lsansonetti@…

  • owner changed from lsansonetti@… to rich@…

Assigning to Rich for screening.

Changed 18 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to invalid

HotCocoa is no longer developed here. Please report the problem to  http://github.com/richkilmer/hotcocoa.

Note: See TracTickets for help on using tickets.