ruby-changes:13723
From: nagai <ko1@a...>
Date: Tue, 27 Oct 2009 21:23:11 +0900 (JST)
Subject: [ruby-changes:13723] Ruby:r25514 (ruby_1_8): * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
nagai 2009-10-27 21:22:57 +0900 (Tue, 27 Oct 2009) New Revision: 25514 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25514 Log: * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/tk/lib/tk/variable.rb Index: ruby_1_8/ext/tk/lib/tk/variable.rb =================================================================== --- ruby_1_8/ext/tk/lib/tk/variable.rb (revision 25513) +++ ruby_1_8/ext/tk/lib/tk/variable.rb (revision 25514) @@ -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 Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 25513) +++ ruby_1_8/ChangeLog (revision 25514) @@ -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 08:56:11 2009 Nobuyoshi Nakada <nobu@r...> * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/