Class: Schmooze::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/schmooze/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(root, env = {}) ⇒ Base

Returns a new instance of Base.



43
44
45
46
47
48
49
# File 'lib/schmooze/base.rb', line 43

def initialize(root, env={})
  @env = env
  @root = root
  @code = ProcessorGenerator.generate(self.class.instance_variable_get(:@imports) || [], self.class.instance_variable_get(:@methods) || [])

  spawn_process
end

Instance Method Details

#pidObject



51
52
53
# File 'lib/schmooze/base.rb', line 51

def pid
  @process_thread.pid
end