Class: Conquer::Scroller::Worker
- Inherits:
-
Container::Worker
- Object
- Container::Worker
- Conquer::Scroller::Worker
- Defined in:
- lib/conquer/scroller.rb
Instance Method Summary collapse
-
#initialize(topic, child_topics, options) ⇒ Worker
constructor
A new instance of Worker.
- #update_child_content ⇒ Object
Constructor Details
#initialize(topic, child_topics, options) ⇒ Worker
Returns a new instance of Worker.
6 7 8 9 10 11 12 |
# File 'lib/conquer/scroller.rb', line 6 def initialize(topic, child_topics, ) super(topic, child_topics) @options = @scroll_position = 0 async.run end |
Instance Method Details
#update_child_content ⇒ Object
14 15 16 17 |
# File 'lib/conquer/scroller.rb', line 14 def update_child_content(*) @scroll_position = 0 super end |