Module: Utils
- Included in:
- AdvancedRubyCommandHandler, CommandHandler
- Defined in:
- lib/advanced_ruby_command_handler/utils.rb
Instance Method Summary collapse
Instance Method Details
#find_command(name) ⇒ Object
4 5 6 7 8 |
# File 'lib/advanced_ruby_command_handler/utils.rb', line 4 def find_command(name) return unless commands_module.methods.include?(name.to_sym) commands_module.method(name.to_sym).call end |