J
John Pywtorak
I have seen some examples of hooking into const_missing; Howerver, I
can't seem to find anything on const_set, and const_get, any ideas?
I tried opening class Module, ex.
class Module
def const_set(cname, cval)
....
end
end
Does not work. I realize this is very dangerous. Is there any other
way to intercept when, ex
FOO="bar"
happens?
Thanks
can't seem to find anything on const_set, and const_get, any ideas?
I tried opening class Module, ex.
class Module
def const_set(cname, cval)
....
end
end
Does not work. I realize this is very dangerous. Is there any other
way to intercept when, ex
FOO="bar"
happens?
Thanks