From df81c20827e12cbec437d68083fc0be1625dc661 Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 27 Oct 2009 12:22:42 +0000 Subject: * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tk/variable.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext') diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 6a618e7ee..f6ebe551f 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -1175,6 +1175,13 @@ end end end + def +@ + self.numeric + end + def -@ + -(self.numeric) + end + def &(other) if other.kind_of?(Array) self.to_a & other.to_a -- cgit