I am creating a very limited Time class in which I want to make use of the core Time class’s parse method. So I end up with something like this…
class Time
def parse(str)
@time = # I want to use Time.parse here
end
end
How can I break out of my newly defined Time class and access the core Time class without renaming my class?
Now you can still reference the old parse method using
Time.orig_parse