In Ruby:
module Example
class ExampleValidator
def mymethod
# do something important
end
end
end
Is it possible to make mymethod immutable (i.e. no monkey patching)?
Otherwise it would also be acceptable to "freeze" the entire class ExampleValidator.