☰
Debian Codegraph
@
5.1.2+dfsg-2
5.1.2+dfsg-1
/
/
plugin
/
file_path
/
file_path.rb
☽
☼
plugin/file_path/file_path.rb
code
plain
raw
symbols
SCIP
Expat
2009-2014 Toshiaki Asai
debian/copyright
1
# -*- coding: utf-8 -*-
2
3
Plugin
.
create
(
:file_path
)
do
4
5
# Unix local file path
6
filter_uri_filter
do
|
uri
|
7
if
uri
.
is_a?
(
String
) &&
uri
.
start_with?
(
'/'
)
8
[
Addressable
::
URI
.
new
(
scheme
:
'file'
,
path
:
uri
)]
9
else
10
[
uri
]
11
end
12
end
13
14
end