mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cmath.rb: add new methd Object#real?. fix #3137
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2ba3909c0a
commit
0f6794cb23
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 13 19:46:21 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/cmath.rb: add new methd Object#real?. fix #3137
|
||||
|
||||
Mon Jun 13 18:52:00 2011 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c (is_kind_of_BigDecimal): new function to
|
||||
|
|
|
@ -314,3 +314,9 @@ module CMath
|
|||
module_function :lgamma
|
||||
|
||||
end
|
||||
|
||||
class Object
|
||||
def real?
|
||||
raise TypeError, "Numeric Number required"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue