Class: Inch::CLI::Arguments
- Inherits:
-
Object
- Object
- Inch::CLI::Arguments
- Defined in:
- lib/inch/cli/arguments.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#object_names ⇒ Object
readonly
Returns the value of attribute object_names.
-
#switches ⇒ Object
readonly
Returns the value of attribute switches.
Instance Method Summary collapse
-
#initialize(args) ⇒ Arguments
constructor
A new instance of Arguments.
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
#files ⇒ Object (readonly)
Returns the value of attribute files.
4 5 6 |
# File 'lib/inch/cli/arguments.rb', line 4 def files @files end |
#object_names ⇒ Object (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 |
#switches ⇒ Object (readonly)
Returns the value of attribute switches.
4 5 6 |
# File 'lib/inch/cli/arguments.rb', line 4 def switches @switches end |