Class: Bcome::Registry::Arguments::CommandLine

Inherits:
Base
  • Object
show all
Defined in:
lib/objects/registry/arguments/command_line.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #defaults, #merged_arguments, #processed_arguments

Instance Method Summary collapse

Methods inherited from Base

process

Constructor Details

#initialize(arguments, defaults) ⇒ CommandLine

Returns a new instance of CommandLine.



5
6
7
8
9
# File 'lib/objects/registry/arguments/command_line.rb', line 5

def initialize(arguments, defaults)
  @arguments = arguments || []
  @processed_arguments = {}
  super
end

Instance Method Details

#arguments_to_mergeObject



16
17
18
# File 'lib/objects/registry/arguments/command_line.rb', line 16

def arguments_to_merge
  @processed_arguments
end

#do_processObject



11
12
13
14
# File 'lib/objects/registry/arguments/command_line.rb', line 11

def do_process
  parse_arguments
  super
end