blob: 36c0c6140529e38058ad07901406806ae422d90c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Module
def as_load_path
if self == Object || self == Kernel
''
elsif is_a? Class
parent == self ? '' : parent.as_load_path
else
name.split('::').collect do |word|
word.underscore
end * '/'
end
end
end
|