Hal E. Fulton wrote:

....
> The above gives an error.


On second thought your implementation could
have worked - the following may sheet more light
(confusion in my case;-) on it ...

--
def const_missing(sym)
  p sym
end

def const_missingx(sym)
  p sym
end

public :const_missing,:const_missingx
Object.const_missingx(:K) # :K
Object.const_missing(:K)  # throws a NameError ???
---

/Christoph