diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 16:45:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 16:45:35 +0000 |
commit | 29cef5f795043a048a58874d90de0dfe01aa12ea (patch) | |
tree | 6ae42a518c1c5705b8f097668d2b83413da0b6ec /lib/shell/system-command.rb | |
parent | 8815306dc5aadd777c887bbd8de7057598ad709c (diff) |
use Object#class instead of deprecated Object#type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell/system-command.rb')
-rw-r--r-- | lib/shell/system-command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb index c22b9ac0a4..6071c1c841 100644 --- a/lib/shell/system-command.rb +++ b/lib/shell/system-command.rb @@ -15,8 +15,8 @@ require "shell/filter" class Shell class SystemCommand < Filter def initialize(sh, command, *opts) - if t = opts.find{|opt| !opt.kind_of?(String) && opt.type} - Shell.Fail TypeError, t.type, "String" + if t = opts.find{|opt| !opt.kind_of?(String) && opt.class} + Shell.Fail TypeError, t.class, "String" end super(sh) @command = command |