Class: Wee::PagelessComponentDriver
- Inherits:
-
ComponentRunner
- Object
- ComponentRunner
- Wee::PagelessComponentDriver
- Defined in:
- lib/wee/adaptors/nitro.rb,
lib/wee/adaptors/rails.rb
Constant Summary
Constants inherited from ComponentRunner
ComponentRunner::DEFAULT_CALLBACK_PROCESSING
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
Returns the value of attribute callbacks.
Attributes inherited from ComponentRunner
Instance Method Summary collapse
-
#initialize(root_component, callbacks = nil) ⇒ PagelessComponentDriver
constructor
A new instance of PagelessComponentDriver.
- #process_callbacks(*args) ⇒ Object
- #render(*args) ⇒ Object
Methods inherited from ComponentRunner
Constructor Details
#initialize(root_component, callbacks = nil) ⇒ PagelessComponentDriver
Returns a new instance of PagelessComponentDriver.
4 5 6 7 8 |
# File 'lib/wee/adaptors/nitro.rb', line 4 def initialize(root_component, callbacks=nil) super(root_component) @callbacks = callbacks @mutex = Mutex.new end |
Instance Attribute Details
#callbacks ⇒ Object
Returns the value of attribute callbacks.
2 3 4 |
# File 'lib/wee/adaptors/nitro.rb', line 2 def callbacks @callbacks end |
Instance Method Details
#process_callbacks(*args) ⇒ Object
14 15 16 |
# File 'lib/wee/adaptors/nitro.rb', line 14 def process_callbacks(*args) @mutex.synchronize { super } end |
#render(*args) ⇒ Object
10 11 12 |
# File 'lib/wee/adaptors/nitro.rb', line 10 def render(*args) @mutex.synchronize { super } end |