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 | 8e011248465bae7b06203bc2c260432454bcac21 (patch) | |
| tree | 6ae42a518c1c5705b8f097668d2b83413da0b6ec /lib/optparse.rb | |
| parent | 50c355b12eac3ffa982fc60e96a8a272b6b4dff9 (diff) | |
| download | ruby-8e011248465bae7b06203bc2c260432454bcac21.tar.gz ruby-8e011248465bae7b06203bc2c260432454bcac21.tar.xz ruby-8e011248465bae7b06203bc2c260432454bcac21.zip | |
use Object#class instead of deprecated Object#type.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/optparse.rb')
| -rw-r--r-- | lib/optparse.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index dc4564a4c..c92af70c9 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -629,7 +629,7 @@ Default options, which never appear in option summary. end end def inc(*args) - type.inc(*args) + self.class.inc(*args) end =begin @@ -663,7 +663,7 @@ Default options, which never appear in option summary. string pushed back to be first non-option argument =end #'#"#`# def terminate(arg = nil) - type.terminate(arg) + self.class.terminate(arg) end def self.terminate(arg = nil) throw :terminate, arg @@ -1422,11 +1422,11 @@ Base class of exceptions from ((<OptionParser>)) end def reason - @reason || self.type::Reason + @reason || self.class::Reason end def inspect - '#<' + type.to_s + ': ' + args.join(' ') + '>' + "#<#{self.class.to_s}: #{args.join(' ')}>" end def message |
