Module: Kernel

Defined in:
lib/mrT/rb_compat.rb

Overview

Backport some ruby-1.9 features to ruby-1.8

Instance Method Summary (collapse)

Instance Method Details

- (Object) singleton_class



4
5
6
# File 'lib/mrT/rb_compat.rb', line 4

def singleton_class
  (class << self; self; end)
end

- (Object) spawn(*args)



8
9
10
11
# File 'lib/mrT/rb_compat.rb', line 8

def spawn(*args)
  args.reject! { |item| item.instance_of? Hash }
  Kernel.fork { Kernel.exec(*args) }
end