Is it possible to prevent a public method from being overwritten in the child classes?
class Parent
def some_method
#important stuff that should never be overwritten
end
end
class Child < Parent
def some_method
#should not be possible to overwrite (raise an error if a child class tries to do it)
end
end
Thanks!