Class: Schmooze::Base
- Inherits:
-
Object
- Object
- Schmooze::Base
- Defined in:
- lib/schmooze/base.rb
Instance Method Summary collapse
-
#initialize(root, env = {}) ⇒ Base
constructor
A new instance of Base.
- #pid ⇒ Object
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
#pid ⇒ Object
51 52 53 |
# File 'lib/schmooze/base.rb', line 51 def pid @process_thread.pid end |