Hi,
I am heavily confused with ruby's
Module#const_get(http://www.ruby-doc.org/core-2.0/Module.html#method-i-const_get)
(a) Checks for a constant with the given name in mod. If inherit is set,
the lookup will also search the ancestors (***and Object if mod is a
Module.***)
(b) This method will ***recursively look up*** constant names if a
namespaced class name is provided. For example:
module Foo; class Bar; end end
Object.const_get 'Foo::Bar'
What are the probable areas(How is that located?)where these recursive
look-ups will be happened?
(c) What are probable use-cases where I should/may think of to use this
methods?
···
--
Posted via http://www.ruby-forum.com/.