Class: Inch::CLI::Command::Options::Show
- Inherits:
-
BaseObject
- Object
- Base
- BaseObject
- Inch::CLI::Command::Options::Show
- Defined in:
- lib/inch/cli/command/options/show.rb
Instance Attribute Summary
Attributes inherited from BaseObject
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from BaseObject
Methods inherited from Base
#description, #initialize, #name, run, #usage
Methods included from TraceHelper
Constructor Details
This class inherits a constructor from Inch::CLI::Command::BaseObject
Instance Method Details
#descriptions ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/inch/cli/command/options/show.rb', line 7 def descriptions [ "", "Example: " + "$ inch show lib/**/*.rb Foo::Bar#initialize".cyan, "", "Shows one or more objects in detail.", description_grades, description_arrows ] end |
#verify ⇒ Object
18 19 20 21 22 |
# File 'lib/inch/cli/command/options/show.rb', line 18 def verify if object_names.empty? kill # "Provide a name to an object to show it's evaluation." end end |