Class: Guard::Ronn

Inherits:
Plugin
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Ronn

Returns a new instance of Ronn.



13
14
15
16
# File 'lib/guard/ronn.rb', line 13

def initialize(options = {})
  super
  @runner = Runner.new(@options)
end

Instance Attribute Details

#runnerObject (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_allObject



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

#startObject

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