Class: YARD::CLI::Yardoc

Inherits:
Object
  • Object
show all
Includes:
Medoosa
Defined in:
lib/yard-medoosa.rb

Overview

Monkey patch YARD to hook into ‘yard doc`

Instance Method Summary collapse

Methods included from Medoosa

#add_clusters, #generate_medoosa, #module_children

Instance Method Details

#run_generate_with_medoosa(*args) ⇒ Object Also known as: run_generate



9
10
11
12
13
14
15
16
# File 'lib/yard-medoosa.rb', line 9

def run_generate_with_medoosa(*args)
  run_generate_without_medoosa(*args)
  fname = generate_medoosa(options.serializer.basepath)
  options.files << CodeObjects::ExtraFileObject.new(fname)
  # FIXME: what, do we really run it twice?!
  # yes, until I figure out a better place to hook generate_medoosa in
  run_generate_without_medoosa(*args)
end