Class: Inch::CLI::Command::Output::List

Inherits:
Base
  • Object
show all
Defined in:
lib/inch/cli/command/output/list.rb

Constant Summary collapse

PER_RANGE =
10

Constants inherited from Base

Base::PRIORITY_ARROWS, Base::PRIORITY_MAP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#priority_arrow

Methods included from TraceHelper

#debug, #trace, #trace_header

Constructor Details

#initialize(options, objects, ranges) ⇒ List

Returns a new instance of List.



10
11
12
13
14
15
16
17
# File 'lib/inch/cli/command/output/list.rb', line 10

def initialize(options, objects, ranges)
  @options = options
  @objects = objects
  @ranges = ranges
  @omitted = 0

  display_list
end

Instance Attribute Details

#objectsObject (readonly)

Returns the value of attribute objects.



6
7
8
# File 'lib/inch/cli/command/output/list.rb', line 6

def objects
  @objects
end