Sha256: 3a8b63d1f1d7c13f79abe0b893b06f04d98f38be130e2fe75cef408f70674e68
Contents?: true
Size: 348 Bytes
Versions: 22
Compression:
Stored size: 348 Bytes
Contents
module Pansophy module Helpers class PathBuilder def initialize(file, directory) @file = file @directory = directory end def relative_path return @file.pathname if @directory.pathname.to_s.empty? @file.pathname.sub(::File.join(@directory.pathname, '/'), '') end end end end
Version data entries
22 entries across 22 versions & 1 rubygems