Module: Zoidberg

Defined in:
lib/zoidberg.rb,
lib/zoidberg/pool.rb,
lib/zoidberg/task.rb,
lib/zoidberg/proxy.rb,
lib/zoidberg/shell.rb,
lib/zoidberg/timer.rb,
lib/zoidberg/future.rb,
lib/zoidberg/logger.rb,
lib/zoidberg/signal.rb,
lib/zoidberg/version.rb,
lib/zoidberg/registry.rb,
lib/zoidberg/weak_ref.rb,
lib/zoidberg/supervise.rb,
lib/zoidberg/supervisor.rb,
lib/zoidberg/proxy/confined.rb,
lib/zoidberg/proxy/liberated.rb

Overview

Why not Zoidberg!?

Defined Under Namespace

Modules: HardShell, Shell, SoftShell, Supervise Classes: DeadException, Future, Logger, Pool, Proxy, Registry, Signal, Supervisor, Task, Timer, WeakRef

Constant Summary collapse

VERSION =

Current library version

Gem::Version.new('0.1.2')

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_shellObject

Returns the value of attribute default_shell.



26
27
28
# File 'lib/zoidberg.rb', line 26

def default_shell
  @default_shell
end

Class Method Details

.loggerZoidberg::Logger



29
30
31
# File 'lib/zoidberg.rb', line 29

def logger
  @zoidberg_logger
end

.logger=(log) ⇒ zoidberg::Logger

Set new default logger



37
38
39
40
41
42
# File 'lib/zoidberg.rb', line 37

def logger=(log)
  unless(log.is_a?(Zoidberg::Logger))
    raise TypeError.new "Expecting type `Zoidberg::Logger` but received type `#{log.class}`"
  end
  @zoidberg_logger = log
end

.uuidString



45
46
47
# File 'lib/zoidberg.rb', line 45

def uuid
  SecureRandom.uuid
end