mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rational.rb (floor, ceil, truncate, round): do not use
definitions of Numeric. * lib/rational.rb (to_i): should returns truncated self. * lib/complex.rb (numerator): requires Integer#{numerator,denominator}. * lib/complex.rb (quo): do not use definition of Numeric. * lib/complex.rb (>, >=, <, <=, between?, div, divmod, modulo, floor, ceil, truncate, round): undef'ed. * lib/mathn.rb (Rational#inspect): removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d4defbe1b
commit
2b72892ac0
4 changed files with 123 additions and 45 deletions
|
@ -121,11 +121,6 @@ end
|
|||
class Rational
|
||||
Unify = true
|
||||
|
||||
remove_method :inspect
|
||||
def inspect
|
||||
format "%s/%s", numerator.inspect, denominator.inspect
|
||||
end
|
||||
|
||||
alias power! **
|
||||
|
||||
def ** (other)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue