Sha256: 71fe4272df9247ce4d93ea4c449bc83b1ebee3e0747f3eb5610dbb87f1a2d977

Contents?: true

Size: 251 Bytes

Versions: 9

Compression:

Stored size: 251 Bytes

Contents

module Hike
  class Paths < NormalizedArray
    def initialize(root = ".")
      @root = root
      super()
    end

    def normalize_element(path)
      path = File.join(@root, path) unless path[/^\//]
      File.expand_path(path)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hike-0.4.0 lib/hike/paths.rb
hike-0.3.0 lib/hike/paths.rb
hike-0.2.0 lib/hike/paths.rb
hike-0.1.5 lib/hike/paths.rb
hike-0.1.4 lib/hike/paths.rb
hike-0.1.3 lib/hike/paths.rb
hike-0.1.2 lib/hike/paths.rb
hike-0.1.1 lib/hike/paths.rb
hike-0.1.0 lib/hike/paths.rb