The docs say :
This method will recursively look for constant names if a class name with names is provided.
, Foo.const_get('Foo::Bar') Foo.const_get('Foo').const_get('Bar'). , .
:
Foo.const_get('Foo::Foo')
Foo.const_get('Foo').const_get('Foo')
const_get , Foo (), . , :
Foo::Foo.const_get('Foo')
, ( ), . Object Foo , .
::Foo s. const_get , , , .
Foo.const_get('Foo::Bar'), .
Foo.const_get('Foo').const_get('Bar')
Foo.const_get('Foo') , Foo::Foo, :
Foo::Foo.const_get('Bar')
Foo Bar , Object, NameError.