diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-27 12:22:57 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-27 12:22:57 +0000 |
| commit | f582b224bd4f86efc4230fb9819d0065cdf66a46 (patch) | |
| tree | e6ac8b64028a9e959d7a159f5d4aa6b76f2f45e6 | |
| parent | 130a8ebd3460d0984887e1ce3ce386b25b492229 (diff) | |
* ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tk/variable.rb | 7 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Oct 27 21:20:35 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> + + * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. + Tue Oct 27 08:56:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb 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 |
