ruby-changes:13722
From: nagai <ko1@a...>
Date: Tue, 27 Oct 2009 21:22:59 +0900 (JST)
Subject: [ruby-changes:13722] Ruby:r25513 (trunk): * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
nagai 2009-10-27 21:22:42 +0900 (Tue, 27 Oct 2009) New Revision: 25513 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25513 Log: * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. Modified files: trunk/ChangeLog trunk/ext/tk/lib/tk/variable.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 25512) +++ ChangeLog (revision 25513) @@ -1,3 +1,7 @@ +Tue Oct 27 21:20:35 2009 Hidetoshi NAGAI <nagai@a...> + + * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. + Tue Oct 27 16:36:52 2009 Nobuyoshi Nakada <nobu@r...> * string.c (chopped_length): get rid of unexpected exception. Index: ext/tk/lib/tk/variable.rb =================================================================== --- ext/tk/lib/tk/variable.rb (revision 25512) +++ ext/tk/lib/tk/variable.rb (revision 25513) @@ -1175,6 +1175,13 @@ end end + def +@ + self.numeric + end + def -@ + -(self.numeric) + end + def &(other) if other.kind_of?(Array) self.to_a & other.to_a -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/