Class: Inch::CLI::Command::Options::List
- Defined in:
- lib/inch/cli/command/options/list.rb
Instance Attribute Summary
Attributes inherited from BaseList
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from BaseList
Methods inherited from Base
#description, #initialize, #name, register_command_as, run, #run, #usage
Methods included from TraceHelper
Constructor Details
This class inherits a constructor from Inch::CLI::Command::Base
Instance Method Details
#descriptions ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/inch/cli/command/options/list.rb', line 8 def descriptions [ "", "Lists objects that can be improved regarding their documentation ordered by their grade.", "", "Example: " + "$ inch list lib/**/*.rb --all".cyan, "", description_hint_grades, description_hint_arrows ] end |
#list_options(opts) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/inch/cli/command/options/list.rb', line 20 def (opts) super opts.on("--numbers", "Show numbers instead of grades and arrows") do |depth| @numbers = true end end |