Module: Fi

Defined in:
lib/fi.rb,
lib/fi/dir.rb,
lib/fi/file.rb,
lib/fi/path.rb,
lib/fi/version.rb

Defined Under Namespace

Classes: Dir, File, Path

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.delete(path) ⇒ Object



20
21
22
# File 'lib/fi.rb', line 20

def delete(path)
  ::File.delete path
end

.new(path, content = '') ⇒ Object



8
9
10
# File 'lib/fi.rb', line 8

def new(path, content='')
  Fi::File.new path, content
end

.open(path) ⇒ Object



12
13
14
# File 'lib/fi.rb', line 12

def open(path)
  ::File.open path
end

.read(path) ⇒ Object



16
17
18
# File 'lib/fi.rb', line 16

def read(path)
  ::File.read path
end