Module: Kernel

Defined in:
lib/chitin/core_ext/kernel.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



2
# File 'lib/chitin/core_ext/kernel.rb', line 2

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

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



3
# File 'lib/chitin/core_ext/kernel.rb', line 3

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

#L(&block) ⇒ Object

L for Lambda. Creates a proc as a RubyMethod



11
12
13
# File 'lib/chitin/core_ext/kernel.rb', line 11

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

#P(&block) ⇒ Object



15
16
17
# File 'lib/chitin/core_ext/kernel.rb', line 15

def P(&block)
  Chitin::PVC.new :bottle, &block
end

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



4
# File 'lib/chitin/core_ext/kernel.rb', line 4

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