Method: Command::CommandSet#initialize

Defined in:
lib/command-set/command-set.rb

#initialize(name = "") ⇒ CommandSet

Returns a new instance of CommandSet.



155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/command-set/command-set.rb', line 155

def initialize(name="")
  @name = name
  @command_list = { nil => RootCommand.setup(self, nil) {} }
  @mode_commands = {}
  @included_sets = []
  @documentation = ""
  @prompt = nil
  @arguments = []
  @most_recent_args = {}
  @subject_defaults = proc {|s|}
  @context = []
  @root_blocks = []
end