Class: Guard::Ronn
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Ronn
- Defined in:
- lib/guard/ronn.rb,
lib/guard/ronn/runner.rb,
lib/guard/ronn/notifier.rb,
lib/guard/ronn/inspector.rb
Defined Under Namespace
Modules: Inspector Classes: Notifier, Runner
Instance Attribute Summary collapse
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Ronn
constructor
A new instance of Ronn.
- #run_all ⇒ Object
- #run_on_changes(paths) ⇒ Object
-
#start ⇒ Object
Call once when guard starts.
Constructor Details
Instance Attribute Details
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
11 12 13 |
# File 'lib/guard/ronn.rb', line 11 def runner @runner end |
Instance Method Details
#run_all ⇒ Object
23 24 25 |
# File 'lib/guard/ronn.rb', line 23 def run_all @runner.run(Inspector.ronn_files, message: 'Building all manuals') end |
#run_on_changes(paths) ⇒ Object
27 28 29 |
# File 'lib/guard/ronn.rb', line 27 def run_on_changes(paths) @runner.run(Inspector.clean(paths)) end |
#start ⇒ Object
Call once when guard starts
19 20 21 |
# File 'lib/guard/ronn.rb', line 19 def start Guard::Compat::UI.info "Guard::Ronn is running, with Ronn #{::Ronn.version}!" end |