Sha256: d30660bda960dd568ec0257d25c7f0c198f9642284abad3b062a3b8173319c72
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
require 'pathname' require 'hike/normalized_array' module Hike class Paths < NormalizedArray def initialize(root = ".") @root = Pathname.new(root) super() end def normalize_element(path) path = Pathname.new(path) path = @root.join(path) if path.relative? path.expand_path.to_s end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hike-0.7.1 | lib/hike/paths.rb |
hike-0.7.0 | lib/hike/paths.rb |
hike-0.6.0 | lib/hike/paths.rb |