Class: Munge::Extra::Livereload::UpdateClient
- Inherits:
-
Object
- Object
- Munge::Extra::Livereload::UpdateClient
- Includes:
- Celluloid, Celluloid::Notifications
- Defined in:
- lib/munge/extra/livereload/update_client.rb
Instance Method Summary collapse
-
#initialize(webserver) ⇒ UpdateClient
constructor
A new instance of UpdateClient.
- #notify_reload(_topic, changed_files) ⇒ Object
Constructor Details
#initialize(webserver) ⇒ UpdateClient
Returns a new instance of UpdateClient.
8 9 10 11 |
# File 'lib/munge/extra/livereload/update_client.rb', line 8 def initialize(webserver) @webserver = webserver subscribe("changed_files", :notify_reload) end |
Instance Method Details
#notify_reload(_topic, changed_files) ⇒ Object
13 14 15 |
# File 'lib/munge/extra/livereload/update_client.rb', line 13 def notify_reload(_topic, changed_files) @webserver.notify_reload(changed_files) end |