Method: App42::Base::Help.usage
- Defined in:
- lib/app42/base/help.rb
.usage(command) ⇒ Object
call help methods
123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/app42/base/help.rb', line 123 def Help.usage command if self.respond_to?(command) send command elsif self.respond_to?(command.split(':').last) send command.split(':').last elsif self.respond_to?(command.split('-').join('_')) send command.split('-').join('_') else Paint["Sorry..!!, Help is not available.\n", :red] end end |