Cross Reference: file.rb
xref
: /
ontohub
/
lib
/
extend
/
file.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
class
File
def
self.basepath
(
filepath
)
File.join
(
File.dirname
(
filepath
)
,
File.basename
(
filepath
,
File.extname
(
filepath
)
)
)
.
sub
(
'./'
,
''
)
end
def
self.relative
_path
(
dir
,
path
)
if
path.starts
_with
?
dir
path.gsub
(/^
#{dir}\//, '')
end
end
end