gist: 2010 Download_button fork
public
Public Clone URL: git://gist.github.com/2010.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Exists:
 
Foo
Foo::Bar
Foo::Bar::Baz
Foo::Baz::Bat
Foo::Baz::Bat::Bam
 
Examples:
 
Foo.full_const_get("Bar") #=> Foo::Bar
Foo::Baz.full_const_get("Bar::Baz") #=> Foo::Bar::Baz
Foo::Baz::Bat.full_const_get("Bar::Baz") #=> Foo::Bar::Baz
 
Algorithm:
 
do regular const_get, then do the rigid const_get from Merb. Failing that, try to do the rigid const_get for the first two, etc.

Owner

engineyard

Revisions