mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cmath.rb: Hide handle_no_method_error from RDoc.
* error.c: Document or hide undocumented error classes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b57a0d44f9
commit
9802a3e7de
3 changed files with 24 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 30 09:21:52 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/cmath.rb: Hide handle_no_method_error from RDoc.
|
||||
* error.c: Document or hide undocumented error classes.
|
||||
|
||||
Thu Jun 30 07:49:04 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* hash.c: Document ENV
|
||||
|
|
18
error.c
18
error.c
|
@ -1464,6 +1464,12 @@ syserr_eqq(VALUE self, VALUE exc)
|
|||
* Errno::ENOENT: No such file or directory - does/not/exist
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-class: EncodingError
|
||||
*
|
||||
* EncodingError is the base class for encoding errors.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-class: Encoding::CompatibilityError
|
||||
*
|
||||
|
@ -1471,6 +1477,18 @@ syserr_eqq(VALUE self, VALUE exc)
|
|||
* incompatible with the target encoding.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-class: fatal
|
||||
*
|
||||
* fatal is an Exception that is raised when ruby has encountered a fatal
|
||||
* error and must exit. You are not able to rescue fatal.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Document-class: NameError::message
|
||||
* :nodoc:
|
||||
*/
|
||||
|
||||
/*
|
||||
* Descendants of class <code>Exception</code> are used to communicate
|
||||
* between <code>raise</code> methods and <code>rescue</code>
|
||||
|
|
|
@ -389,7 +389,7 @@ module CMath
|
|||
module_function :lgamma
|
||||
|
||||
private
|
||||
def handle_no_method_error
|
||||
def handle_no_method_error # :nodoc:
|
||||
if $!.name == :real?
|
||||
raise TypeError, "Numeric Number required"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue