raul/pt — pull request #42 by Knack (2012-11-16 10:36:52+00:00)
Title: Fix in protected method "commands" for compatibility with Ruby 1.8

In Ruby 1.9, public_methods return an array of symbols, but in 1.8 it returned an array of strings. This caused problems when adding the symbol :help and trying to sort the array (comparison between string and symbol).

Note that it's not necessary to add the "help" method because it is indeed a public method. Also, there's no need to have the commands sorted in the current use of the method (include?). So, my solution was to simplify the method to make it compatible with both ruby versions.