Skip to content

Commit

Permalink
Showing 2 changed files with 6 additions and 1 deletion.

This file was deleted.

6 changes: 6 additions & 0 deletions truffle/src/main/ruby/core/numeric.rb
Original file line number Diff line number Diff line change
@@ -326,4 +326,10 @@ def denominator
def real?
true
end

def singleton_method_added(name)
self.singleton_class.send(:remove_method, name)
raise TypeError, "can't define singleton method #{name} for #{self.class}"
end

end

0 comments on commit 94be26b

Please sign in to comment.