Mega Code Archive

 
Categories / Ruby / Language Basics
 

Use remove_const to delete a constant definition

# This should make things a lot simpler. module Math  remove_const(:PI)   PI = 3 end Math::PI                                        # => 3