Class: YARD::CLI::LinkStdlib::List
- Inherits:
-
Command
- Object
- Command
- YARD::CLI::LinkStdlib::List
- Includes:
- CommandHelper
- Defined in:
- lib/yard/cli/link_stdlib/list.rb
Overview
Definitions
Constant Summary collapse
- DESCRIPTION =
"List Ruby versions"
- USAGE =
"yard stdlib list"
Instance Method Summary collapse
Methods included from CommandHelper
#add_header, #add_version_opt, #check_args!, #description, #opts, #usage
Instance Method Details
#run(*args) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/yard/cli/link_stdlib/list.rb', line 38 def run *args OptionParser.new { |op| add_header op }.parse! args check_args! args, 0 log.puts \ YARD::LinkStdlib::ObjectMap. all. map { |om| om.version.to_s }. join( "\n" ) end |