class Configurations::Path

Public Class Methods

new(path = []) click to toggle source
# File lib/configurations/path.rb, line 3
def initialize(path = [])
  @path = path
end

Public Instance Methods

add(*path) click to toggle source
# File lib/configurations/path.rb, line 7
def add(*path)
  Path.new(@path + path)
end
inspect()
Alias for: to_s
print()
Alias for: to_s
reduce(initial, &block) click to toggle source
# File lib/configurations/path.rb, line 11
def reduce(initial, &block)
  @path.reduce(initial, &block)
end
to_s() click to toggle source
# File lib/configurations/path.rb, line 15
def to_s
  @path.join(".")
end
Also aliased as: inspect, print