Method: Cisco::CommandReference#lookup
- Defined in:
- lib/cisco_node_utils/command_reference.rb
#lookup(feature, name) ⇒ Object
Get the command reference
424 425 426 427 428 429 |
# File 'lib/cisco_node_utils/command_reference.rb', line 424 def lookup(feature, name) value = @hash[feature] value = value[name] if value.is_a? Hash fail IndexError, "No CmdRef defined for #{feature}, #{name}" if value.nil? value end |