Class: Inch::CLI::Command::Options::Inspect

Inherits:
BaseObject show all
Defined in:
lib/inch/cli/command/options/inspect.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#object

Attributes inherited from BaseList

#objects

Attributes inherited from Base

#codebase

Instance Method Summary collapse

Methods inherited from BaseObject

#prepare_objects

Methods inherited from BaseList

#prepare_codebase

Methods inherited from Base

#description, #initialize, #name, register_command_as, run, #run, #usage

Methods included from TraceHelper

#ui

Constructor Details

This class inherits a constructor from Inch::CLI::Command::Base

Instance Method Details

#descriptionsObject


6
7
8
9
10
11
12
13
14
# File 'lib/inch/cli/command/options/inspect.rb', line 6

def descriptions
  [
    '',
    'Example: ' +
      '$ inch inspect lib/**/*.rb Foo::Bar#initialize'.color(:cyan),
    '',
    'Shows one or more objects in detail.'
  ]
end

#verifyObject


16
17
18
19
20
# File 'lib/inch/cli/command/options/inspect.rb', line 16

def verify
  if object_names.empty?
    kill # "Provide a name to an object to show it's evaluation."
  end
end