[macruby-changes] [320] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jul 7 18:51:11 PDT 2008
Revision: 320
http://trac.macosforge.org/projects/ruby/changeset/320
Author: rich at infoether.com
Date: 2008-07-07 18:51:11 -0700 (Mon, 07 Jul 2008)
Log Message:
-----------
switched to to_s for the combo box protocol
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/combo_box_data_source.rb
MacRuby/trunk/sample-macruby/HotCocoa/combo_box.rb
Modified: MacRuby/trunk/lib/hotcocoa/combo_box_data_source.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/combo_box_data_source.rb 2008-07-08 01:32:11 UTC (rev 319)
+++ MacRuby/trunk/lib/hotcocoa/combo_box_data_source.rb 2008-07-08 01:51:11 UTC (rev 320)
@@ -36,9 +36,9 @@
if item.kind_of?(Hash)
item.values.first
else
- item.to_str
+ item.to_s
end
end
end
-end
\ No newline at end of file
+end
Modified: MacRuby/trunk/sample-macruby/HotCocoa/combo_box.rb
===================================================================
--- MacRuby/trunk/sample-macruby/HotCocoa/combo_box.rb 2008-07-08 01:32:11 UTC (rev 319)
+++ MacRuby/trunk/sample-macruby/HotCocoa/combo_box.rb 2008-07-08 01:51:11 UTC (rev 320)
@@ -8,7 +8,7 @@
include HotCocoa
class Person < Struct.new(:first, :last)
- def to_str
+ def to_s
"#{first} #{last}"
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080707/5c4fc71f/attachment.html
More information about the macruby-changes
mailing list