I want to redefine the behavior of a function within a library if certain conditions are met, but execute the original function otherwise. Example:
class LibraryToExtend
def FunctionToExtend(argument)
if argument == something
do_something_new
else
do_what_the_function_did_originally
end
end
end
I don't think super
would work in this instance because I'm overriding the function, not extending it.