Class: Wee::PagelessComponentDriver

Inherits:
ComponentRunner show all
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

Attributes inherited from ComponentRunner

#root_component

Instance Method Summary collapse

Methods inherited from ComponentRunner

#snapshot

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

#callbacksObject

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