M
Mark T
Currently this raises: superclass mismatch for class Soda (TypeError)
How can I redefine a class?
As a class is an object, if I remove all of it's methods, attr & @'s
could it be GC'd? (
#-----------------------------------------
class Soda
def initialize
@brand = "SweetenedSugar" end
def retrieve_brand
return @brand end end
class Soda < String
end
#-----------------------------------------
How can I redefine a class?
As a class is an object, if I remove all of it's methods, attr & @'s
could it be GC'd? (
#-----------------------------------------
class Soda
def initialize
@brand = "SweetenedSugar" end
def retrieve_brand
return @brand end end
class Soda < String
end
#-----------------------------------------