Class: YARD::CLI::Gems
Overview
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize ⇒ Gems
constructor
A new instance of Gems.
-
#run(*args) ⇒ void
Runs the commandline utility, parsing arguments and generating YARD indexes for gems.
Methods inherited from Command
#common_options, #load_script, #parse_options, run
Constructor Details
#initialize ⇒ Gems
Returns a new instance of Gems.
5 6 7 8 |
# File 'lib/yard/cli/gems.rb', line 5 def initialize @rebuild = false @gems = [] end |
Instance Method Details
#description ⇒ Object
10 |
# File 'lib/yard/cli/gems.rb', line 10 def description; "Builds YARD index for gems" end |
#run(*args) ⇒ void
This method returns an undefined value.
Runs the commandline utility, parsing arguments and generating YARD indexes for gems.
17 18 19 20 21 |
# File 'lib/yard/cli/gems.rb', line 17 def run(*args) require 'rubygems' optparse(*args) build_gems end |