[macruby-changes] [357] MacRuby/trunk/lib/hotcocoa/layout_view.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 10 11:56:42 PDT 2008


Revision: 357
          http://trac.macosforge.org/projects/ruby/changeset/357
Author:   rich at infoether.com
Date:     2008-07-10 11:56:42 -0700 (Thu, 10 Jul 2008)
Log Message:
-----------
change to_s to inspect

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/layout_view.rb

Modified: MacRuby/trunk/lib/hotcocoa/layout_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/layout_view.rb	2008-07-10 16:44:29 UTC (rev 356)
+++ MacRuby/trunk/lib/hotcocoa/layout_view.rb	2008-07-10 18:56:42 UTC (rev 357)
@@ -171,8 +171,8 @@
     @padding
   end
   
-  def to_s
-    "start=#{start?}\nexpand=#{expand?}\nleft_padding=#{left_padding}\nright_padding=#{right_padding}\ntop_padding=#{top_padding}\nbottom_padding=#{bottom_padding}\nother=#{other}\nview=#{view.inspect}"
+  def inspect
+    "#{description} (start=#{start?}, expand=#{expand?}, left_padding=#{left_padding}, right_padding=#{right_padding}, top_padding=#{top_padding}, bottom_padding=#{bottom_padding}, other=#{other.inspect}, view=#{view.inspect})"
   end
   
   private
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080710/fdb65dd5/attachment.html 


More information about the macruby-changes mailing list