module FunWith::Files::RootPathExtensions

Public Instance Methods

root( *args ) click to toggle source
# File lib/fun_with/files/root_path.rb, line 4
def root( *args )
  if args.length > 0
    args.unshift( @root_path )
    FilePath.new( *args )
  else
    FilePath.new( @root_path )
  end
end
set_root_path( path ) click to toggle source
# File lib/fun_with/files/root_path.rb, line 13
def set_root_path( path )
  @root_path = FunWith::Files::FilePath.new( path )
end