Module: OptionParserGenerator::OptParsePatch Private

Defined in:
lib/optsparser_generator.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

patch for OptionParser redefines parse and parse!

Instance Method Summary collapse

Instance Method Details

#parse(*params) ⇒ OpenStruct

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


98
99
100
101
102
# File 'lib/optsparser_generator.rb', line 98

def parse(*params)
  @out = @defaults.dup
  super
  @out
end

#parse!(*params) ⇒ OpenStruct

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


91
92
93
94
95
# File 'lib/optsparser_generator.rb', line 91

def parse!(*params)
  @out = @defaults.dup
  super
  @out
end