Added Ruby autocomplete example

This commit is contained in:
James Booth
2014-06-12 22:13:02 +01:00
parent ab60cd3e68
commit 7b534bab38
2 changed files with 10 additions and 3 deletions

View File

@@ -2,8 +2,15 @@ module RubyTest
def self.prof_init(version, status)
Prof::cons_show("RubyTest: init, " + version + ", " + status)
Prof::register_command("/ruby", 0, 1, "/ruby", "RubyTest", "RubyTest", cmd_ruby)
Prof::register_command("/lower", 0, 1, "/lower", "Lowercase input string", "Lowercase input string", cmd_lower)
Prof::register_ac("/rcomplete", [ "england", "chile", "croatia" ])
Prof::register_ac("/rcomplete england", [ "win", "lose", "whatever", "runnerup" ])
Prof::register_ac("/rcomplete chile", [ "1", "10", "100", "200" ])
Prof::register_command("/rcomplete", 0, 2, "/rcomplete", "Ruby completion", "Ruby completion", cmd_lower)
Prof::register_timed(timer_test, 10)
end