Method: Docsplit::CommandLine#initialize
- Defined in:
- lib/docsplit/command_line.rb
#initialize ⇒ CommandLine
Creating a CommandLine runs off of the contents of ARGV.
33 34 35 36 37 38 |
# File 'lib/docsplit/command_line.rb', line 33 def initialize cmd = ARGV.shift @command = cmd && cmd.to_sym run end |