|
|
@ -8,14 +8,14 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
def get_name
|
|
|
|
def get_name
|
|
|
|
if slug.start_with? 'Global_Objects/'
|
|
|
|
if slug.start_with? 'Global_Objects/'
|
|
|
|
name, method = *slug.sub('Global_Objects/', '').split('/')
|
|
|
|
name, method, *rest = *slug.sub('Global_Objects/', '').split('/')
|
|
|
|
name.prepend 'Intl.' if INTL_OBJECTS.include?(name)
|
|
|
|
name.prepend 'Intl.' if INTL_OBJECTS.include?(name)
|
|
|
|
|
|
|
|
|
|
|
|
if method
|
|
|
|
if method
|
|
|
|
unless method == method.upcase || method == 'NaN'
|
|
|
|
unless method == method.upcase || method == 'NaN'
|
|
|
|
method = method[0].downcase + method[1..-1] # e.g. Trim => trim
|
|
|
|
method = method[0].downcase + method[1..-1] # e.g. Trim => trim
|
|
|
|
end
|
|
|
|
end
|
|
|
|
name << ".#{method}"
|
|
|
|
name << ".#{([method] + rest).join('.')}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
name
|
|
|
|
name
|
|
|
|