Skip to content

Commit

Permalink
Undefine Numeric.new
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 21, 2013
1 parent 443adc1 commit c38dbd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corelib/numeric.rb
Expand Up @@ -3,6 +3,10 @@ class Numeric

`def._isNumber = true`

class << self
undef_method :new
end

def coerce(other)
%x{
if (other._isNumber) {
Expand Down

0 comments on commit c38dbd5

Please sign in to comment.