Method: Ruvi::EditorApp#cmd_execute
- Defined in:
- lib/front.rb
#cmd_execute(buffer, cmd_line) ⇒ Object
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/front.rb', line 330 def cmd_execute buffer, cmd_line @cmd_overrides.each_pair { |re, block| if cmd_line =~ re ctx = CommandContext.new cmd_line, re, buffer block.call ctx return end } @cmds.each_pair { |re, block| if cmd_line =~ re ctx = CommandContext.new cmd_line, re, buffer block.call ctx return end } "Unknown command: #{cmd_line}" end |