Method: Aio::Module::InputStyle::Console::CmdContext#has_cmd?
- Defined in:
- lib/modules/input/style/console.rb
#has_cmd? ⇒ Boolean
77 78 79 80 81 82 83 84 |
# File 'lib/modules/input/style/console.rb', line 77 def has_cmd? @all_info.each_with_index do |info, idx| next unless info[0] == device_name return idx if info[1] == cmd end return nil end |