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, #objects

Attributes inherited from Base

#source_parser

Instance Method Summary collapse

Methods inherited from BaseObject

#initialize, #prepare_objects

Methods inherited from Base

#initialize, #name, run

Methods included from TraceHelper

#debug, #trace, #trace_header

Constructor Details

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

Instance Method Details

#descriptionObject



5
6
7
# File 'lib/inch/cli/command/inspect.rb', line 5

def description
  'Inspects an object'
end

#run(*args) ⇒ Object



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

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

#usageObject



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

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