instance method
absolute_root_of
Ruby on Rails 1.1.6
Since v1.0.3 Last seen in v2.2.3 PrivateSignature
absolute_root_of(path)
No documentation comment.
Parameters
-
pathreq
Source
# File lib/importmap/map.rb, line 155
def absolute_root_of(path)
(pathname = Pathname.new(path)).absolute? ? pathname : Rails.root.join(path)
end
Defined in lib/importmap/map.rb line 155
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Importmap::Map