Class: CmdParse::MultiList

Inherits:
Object
  • Object
show all
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

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