Class: CmdParse::MultiList
- Inherits:
-
Object
- Object
- CmdParse::MultiList
- Defined in:
- lib/cmdparse.rb
Overview
Container for multiple OptionParser::List objects.
This is needed for providing what’s equivalent to stacked OptionParser instances and the global options implementation.
Instance Method Summary collapse
- #get_candidates(id, &b) ⇒ Object
-
#initialize(list) ⇒ MultiList
constructor
:nodoc:.
-
#summarize(*args, &block) ⇒ Object
:nodoc:.
Constructor Details
#initialize(list) ⇒ MultiList
:nodoc:
136 137 138 |
# File 'lib/cmdparse.rb', line 136 def initialize(list) #:nodoc: @list = list end |
Instance Method Details
#get_candidates(id, &b) ⇒ Object
160 161 162 |
# File 'lib/cmdparse.rb', line 160 def get_candidates(id, &b) @list.reverse_each {|list| list.get_candidates(id, &b)} end |
#summarize(*args, &block) ⇒ Object
:nodoc:
140 141 142 |
# File 'lib/cmdparse.rb', line 140 def summarize(*args, &block) #:nodoc: # We don't want summary information of the global options to automatically appear. end |