Class: Renamer::CommandLine
- Inherits:
-
Object
- Object
- Renamer::CommandLine
- Defined in:
- lib/command_line.rb
Overview
Process command-line arguments
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#arg ⇒ Object
Returns the value of attribute arg.
-
#filenames ⇒ Object
Returns the value of attribute filenames.
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#overwrite ⇒ Object
Returns the value of attribute overwrite.
-
#recursive ⇒ Object
Returns the value of attribute recursive.
Instance Method Summary collapse
-
#initialize ⇒ CommandLine
constructor
A new instance of CommandLine.
Constructor Details
#initialize ⇒ CommandLine
Returns a new instance of CommandLine.
6 7 8 9 10 11 12 13 |
# File 'lib/command_line.rb', line 6 def initialize $VERBOSE, self.recursive, self.overwrite = false self.action, self.arg = nil feed parse process end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/command_line.rb', line 4 def action @action end |
#arg ⇒ Object
Returns the value of attribute arg.
4 5 6 |
# File 'lib/command_line.rb', line 4 def arg @arg end |
#filenames ⇒ Object
Returns the value of attribute filenames.
4 5 6 |
# File 'lib/command_line.rb', line 4 def filenames @filenames end |
#opts ⇒ Object
Returns the value of attribute opts.
4 5 6 |
# File 'lib/command_line.rb', line 4 def opts @opts end |
#overwrite ⇒ Object
Returns the value of attribute overwrite.
4 5 6 |
# File 'lib/command_line.rb', line 4 def overwrite @overwrite end |
#recursive ⇒ Object
Returns the value of attribute recursive.
4 5 6 |
# File 'lib/command_line.rb', line 4 def recursive @recursive end |