diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 06:20:24 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 06:20:24 +0000 |
commit | 9f01e34cb9a45c6ef9423c79b3421310584d69d6 (patch) | |
tree | 009ad04ed8e5570e6d1bd8aaee3dd53b728e5bd4 /lib/rdoc/parsers | |
parent | 48418c5c9a8104e1d60a886597b93f6aa467e917 (diff) | |
download | ruby-9f01e34cb9a45c6ef9423c79b3421310584d69d6.tar.gz ruby-9f01e34cb9a45c6ef9423c79b3421310584d69d6.tar.xz ruby-9f01e34cb9a45c6ef9423c79b3421310584d69d6.zip |
Don't call private fail anymore.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers')
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 8fe9da6ae..e039a058b 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -115,7 +115,7 @@ module RubyToken when String, Symbol source = token.kind_of?(String) ? TkReading2Token : TkSymbol2Token if (tk = source[token]).nil? - IRB.fail TkReading2TokenNoKey, token + fail TkReading2TokenNoKey, token end tk = Token(tk[0], value) else @@ -270,7 +270,7 @@ module RubyToken def RubyToken.def_token(token_n, super_token = Token, reading = nil, *opts) token_n = token_n.id2name unless token_n.kind_of?(String) if RubyToken.const_defined?(token_n) - IRB.fail AlreadyDefinedToken, token_n + fail AlreadyDefinedToken, token_n end token_c = Class.new super_token @@ -279,7 +279,7 @@ module RubyToken if reading if TkReading2Token[reading] - IRB.fail TkReading2TokenDuplicateError, token_n, reading + fail TkReading2TokenDuplicateError, token_n, reading end if opts.empty? TkReading2Token[reading] = [token_c] @@ -1127,7 +1127,7 @@ class RubyLex elsif ch =~ /\W/ lt = "\"" else - RubyLex.fail SyntaxError, "unknown type of %string ('#{ch}')" + fail SyntaxError, "unknown type of %string ('#{ch}')" end # if ch !~ /\W/ # ungetc |