YardoptsCommand
A command-line utility to generate Graphviz graphs from a set of objects
@see Graph#run @since 0.6.0
# File lib/yard/cli/graph.rb, line 41 def description "Graphs class diagram using Graphviz" end
Runs the command-line utility.
@example
grapher = Graph.new grapher.run('--private')
@param [Array<String>] args each tokenized argument
# File lib/yard/cli/graph.rb, line 51 def run(*args) parse_arguments(*args) Registry.load contents = objects.map do |o| o.format(options.merge(:serialize => false)) end.join("\n") opts = {:type => :layout, :contents => contents} options.update(opts) Templates::Engine.render(options) end
Generated with the Darkfish Rdoc Generator 2.