class Sycamore::Path::Root

@api private

Public Class Methods

new() click to toggle source
# File lib/sycamore/path_root.rb, line 11
def initialize
  @parent, @node = nil, nil
end

Public Instance Methods

inspect() click to toggle source
# File lib/sycamore/path_root.rb, line 36
def inspect
  '#<Sycamore::Path::Root>'
end
join(delimiter = '/') click to toggle source
# File lib/sycamore/path_root.rb, line 28
def join(delimiter = '/')
  ''
end
length() click to toggle source
# File lib/sycamore/path_root.rb, line 24
def length
  0
end
root?() click to toggle source
# File lib/sycamore/path_root.rb, line 20
def root?
  true
end
to_s() click to toggle source
# File lib/sycamore/path_root.rb, line 32
def to_s
  '#<Path:Root>'
end
up(distance = 1) click to toggle source
Calls superclass method Sycamore::Path#up
# File lib/sycamore/path_root.rb, line 15
def up(distance = 1)
  super unless distance.is_a? Integer
  self
end