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
- #D(path) ⇒ Object (also: #d)
- #F(path) ⇒ Object (also: #f)
-
#L(&block) ⇒ Object
L for Lambda.
- #P(&block) ⇒ Object
- #S(path) ⇒ Object (also: #s)
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 |