[MacRuby-devel] [MacRuby] #275: [HotCocoa] convert underscore names to camelcase names in mapper
MacRuby
ruby-noreply at macosforge.org
Sun May 31 04:50:21 PDT 2009
#275: [HotCocoa] convert underscore names to camelcase names in mapper
---------------------------------+------------------------------------------
Reporter: dj2@… | Owner: lsansonetti@…
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by eloy.de.enige@…):
I like that you got to it immediately :)
I have a few remarks/questions:
* Since this is a real functional change, I'd like to see some test
coverage with the patch.
* If I recall correctly, Rich already added a String#camel_case method to
HotCocoa, so you should use that to convert to the selector.
* Why actually, and this was before your change there as well, do we use
Kernel#eval to set the value? The setter methods will always be public, so
I don't see why we can't just change "eval 'control.#{key} = value"' to
'control.send("#{key}=", value)'.
Thanks for your time!
--
Ticket URL: <http://www.macruby.org/trac/ticket/275#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list