D
dodeantn
Hi,
how do I remove all my class methods like in the following example? --
class Parent
class << self
def class_stuff
puts "Stuff from my class"
end
end
end
class Child < Parent
# remove all the class methods;
# should be done automatically with "...methods.each { |m|
remove_method(m) }"-like construct
end
Many thanks in advance.
how do I remove all my class methods like in the following example? --
class Parent
class << self
def class_stuff
puts "Stuff from my class"
end
end
end
class Child < Parent
# remove all the class methods;
# should be done automatically with "...methods.each { |m|
remove_method(m) }"-like construct
end
Many thanks in advance.