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
# File 'lib/schmooze/base.rb', line 43

def initialize(root, env={})
  @_schmooze_env = env
  @_schmooze_root = root
  @_schmooze_code = ProcessorGenerator.generate(self.class.instance_variable_get(:@_schmooze_imports) || [], self.class.instance_variable_get(:@_schmooze_methods) || [])
end

Instance Method Details

#pidObject



49
50
51
# File 'lib/schmooze/base.rb', line 49

def pid
  @_schmooze_process_thread && @_schmooze_process_thread.pid
end