Skip to content

Commit

Permalink
Make set_superclass private to declare intent. Fixes rubinius#659
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Feb 15, 2011
1 parent 6c6b190 commit 1e43d68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/bootstrap/class.rb
Expand Up @@ -13,6 +13,8 @@ def set_superclass(sup)
raise TypeError, "superclass must be a Class (#{Rubinius.object_class(sup)} given)"
end

private :set_superclass

def packed!(ary)
Ruby.primitive :class_set_packed
raise PrimitiveFailure, "Class#pack! failed"
Expand Down

0 comments on commit 1e43d68

Please sign in to comment.