diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-27 12:22:42 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-27 12:22:42 +0000 |
commit | aacc33649a3629c890363d90bbdbcbb7809a44fc (patch) | |
tree | 9054be76cbf70e4966a4d54a9b37acc1429af314 /ext/tk/lib | |
parent | 121d15dddab92307984c55165e2fc0ae01f5ff50 (diff) | |
download | ruby-aacc33649a3629c890363d90bbdbcbb7809a44fc.tar.gz |
* ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib')
-rw-r--r-- | ext/tk/lib/tk/variable.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 6a618e7ee8..f6ebe551fb 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 |