Module: Kernel

Defined in:
lib/go/kernel.rb

Overview

The Kernel Module for GoRuby that is responsible for ‘keywords’ that can be used when ‘require “go”’ is present

Author

Jaci Brunning

Instance Method Summary collapse

Instance Method Details

#go(*channels, &block) ⇒ Object



7
8
9
# File 'lib/go/kernel.rb', line 7

def go(*channels, &block)
  Thread.new *channels, &block
end

#gochanObject



19
20
21
# File 'lib/go/kernel.rb', line 19

def gochan
  Go::Channel.new
end

#gofork(*pipes, &block) ⇒ Object



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

def gofork(*pipes, &block)
  Go::Process.new *pipes, &block
end

#gopipeObject



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

def gopipe
  Go::Pipe.new
end