Class: Inch::CLI::Arguments

Inherits:
Object
  • Object
show all
Defined in:
lib/inch/cli/arguments.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Arguments

Returns a new instance of Arguments.



6
7
8
9
10
11
# File 'lib/inch/cli/arguments.rb', line 6

def initialize(args)
  @files = []
  @object_names = []
  @switches = []
  parse(args)
end

Instance Attribute Details

#filesObject (readonly)

Returns the value of attribute files.



4
5
6
# File 'lib/inch/cli/arguments.rb', line 4

def files
  @files
end

#object_namesObject (readonly)

Returns the value of attribute object_names.



4
5
6
# File 'lib/inch/cli/arguments.rb', line 4

def object_names
  @object_names
end

#switchesObject (readonly)

Returns the value of attribute switches.



4
5
6
# File 'lib/inch/cli/arguments.rb', line 4

def switches
  @switches
end