W
Wes Gamble
I have found an issue with a method in a library that I'm using. I
would like to modify this method via a monkey patch, but it is a private
method, and I'm not seeming to get my patch to work.
Can the following be done? Assume a private method "meth" in class
Mod::Kls.
module Mod
class Kls
private
def meth(arg1)
@stuff = things
end
end
end
Thanks,
Wes
would like to modify this method via a monkey patch, but it is a private
method, and I'm not seeming to get my patch to work.
Can the following be done? Assume a private method "meth" in class
Mod::Kls.
module Mod
class Kls
private
def meth(arg1)
@stuff = things
end
end
end
Thanks,
Wes