Class: Nanoc::Live::LiveRecompiler
- Inherits:
-
Object
- Object
- Nanoc::Live::LiveRecompiler
- Defined in:
- lib/nanoc/live/live_recompiler.rb
Instance Method Summary collapse
-
#initialize(command_runner:, focus:) ⇒ LiveRecompiler
constructor
A new instance of LiveRecompiler.
- #run ⇒ Object
Constructor Details
#initialize(command_runner:, focus:) ⇒ LiveRecompiler
Returns a new instance of LiveRecompiler.
6 7 8 9 |
# File 'lib/nanoc/live/live_recompiler.rb', line 6 def initialize(command_runner:, focus:) @command_runner = command_runner @focus = focus end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 |
# File 'lib/nanoc/live/live_recompiler.rb', line 11 def run run_parent do |site| handle_changes(site, @command_runner, focus: @focus) end end |