Class: Munge::Extra::Livereload::Main
- Inherits:
-
Object
- Object
- Munge::Extra::Livereload::Main
- Defined in:
- lib/munge/extra/livereload.rb
Instance Method Summary collapse
-
#initialize(activated) ⇒ Main
constructor
A new instance of Main.
- #notify_changes(files:) ⇒ Object
Constructor Details
#initialize(activated) ⇒ Main
Returns a new instance of Main.
15 16 17 18 19 20 21 22 |
# File 'lib/munge/extra/livereload.rb', line 15 def initialize(activated) @activated = activated if @activated Server.supervise @updater = UpdateServer.new end end |
Instance Method Details
#notify_changes(files:) ⇒ Object
24 25 26 27 28 |
# File 'lib/munge/extra/livereload.rb', line 24 def notify_changes(files:) if @activated @updater.notify(files) end end |