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

Inherits:
BaseObject show all
Defined in:
lib/inch/cli/command/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

#initialize, #name, register_command_as, run

Methods included from TraceHelper

#ui

Constructor Details

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

Instance Method Details

#descriptionObject



10
11
12
# File 'lib/inch/cli/command/inspect.rb', line 10

def description
  'Inspects an object'
end

#run(*args) ⇒ Object



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

def run(*args)
  prepare_objects(*args)
  Output::Inspect.new(@options, objects)
end

#usageObject



14
15
16
# File 'lib/inch/cli/command/inspect.rb', line 14

def usage
  'Usage: inch inspect [paths] OBJECT_NAME [[OBJECT_NAME2] ...] [options]'
end