Method: Command::CommandSet#each_command
- Defined in:
- lib/command-set/command-set.rb
#each_command(path, visitor) ⇒ Object
:section: Workhorse methods - not usually used by client code
219 220 221 222 223 224 225 226 227 |
# File 'lib/command-set/command-set.rb', line 219 def each_command(path, visitor) @command_list.each_pair do |term, command| command.each_command(path + [term], visitor) end return unless path.empty? @mode_commands.each_pair do |term, command| command.each_command([term], visitor) end end |