Module: Kernel

Defined in:
lib/chitin/file.rb

Constant Summary collapse

NULLIN =
NULLOUT = NULLERR = File.open(File::NULL, 'w+')

Instance Method Summary collapse

Instance Method Details

#D(path) ⇒ Object Also known as: d



147
# File 'lib/chitin/file.rb', line 147

def D(path); Chitin::Directory.new path; end

#F(path) ⇒ Object Also known as: f



148
# File 'lib/chitin/file.rb', line 148

def F(path); Chitin::FileObject.new path; end

#L(&block) ⇒ Object

L for Lambda. Creates a proc as a RubyMethod



156
157
158
# File 'lib/chitin/file.rb', line 156

def L(&block)
  Chitin::StringMethod.new :bottle, &block
end

#S(path) ⇒ Object Also known as: s



149
# File 'lib/chitin/file.rb', line 149

def S(path); Chitin::Symlink.new path; end