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 |
# 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
#pid ⇒ Object
49 50 51 |
# File 'lib/schmooze/base.rb', line 49 def pid @_schmooze_process_thread && @_schmooze_process_thread.pid end |