Class: Belafonte::ArgumentProcessor

Inherits:
Object
  • Object
show all
Includes:
Optionally::Required
Defined in:
lib/belafonte/argument_processor.rb

Overview

Processes command line arguments

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ArgumentProcessor

Returns a new instance of ArgumentProcessor.



9
10
11
12
13
14
15
# File 'lib/belafonte/argument_processor.rb', line 9

def initialize(options = {})
  check_required_options(options, :argv, :arguments)

  @argv = options[:argv]
  @arguments = options[:arguments]
  process
end

Instance Method Details

#processedObject



17
18
19
# File 'lib/belafonte/argument_processor.rb', line 17

def processed
  @processed ||= {}
end