Module: EpubForge::Utils::RootPath

Included in:
EpubForge
Defined in:
lib/utils/root_path.rb

Instance Method Summary collapse

Instance Method Details

#root(*args) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/utils/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) ⇒ Object



13
14
15
# File 'lib/utils/root_path.rb', line 13

def set_root_path( path )
  @root_path = FilePath.new( path )
end