diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-05 08:40:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-05 08:40:27 +0000 |
commit | df27d91fc4de9215d6af58de191b2c105ef88678 (patch) | |
tree | d017ac4f0a339440fb13d2473673f254ce98ec38 /ext/tk/lib/tk/font.rb | |
parent | 48653d5ef0ed47469d64170d70c8c2a9f21f159e (diff) |
* lib/observer.rb: a patch from nornagon <nornagon@gmail.com>
merged to allow arbitrary names for update methods.
[ruby-core:05416]
* eval.c (rb_f_fcall): new method to avoid inefficiency of
obj.instance_eval{send(...)} tricks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/font.rb')
-rw-r--r-- | ext/tk/lib/tk/font.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/font.rb b/ext/tk/lib/tk/font.rb index 8e63558cae..73e0ac4682 100644 --- a/ext/tk/lib/tk/font.rb +++ b/ext/tk/lib/tk/font.rb @@ -1186,13 +1186,13 @@ class TkFont def dup src = self obj = super() - obj.instance_eval{ initialize(src) } + obj.fcall(:initialize, src) obj end def clone src = self obj = super() - obj.instance_eval{ initialize(src) } + obj.fcall(:initialize, src) obj end =end |