Class: SNMP::Open::Parser::ValueParser::Other

Inherits:
SNMP::Open::Parser::ValueParser show all
Defined in:
lib/snmp/open/parser/value_parser.rb

Overview

handles objects not handled by any other parser

Constant Summary

Constants inherited from SNMP::Open::Parser::ValueParser

KNOWN_TOKENS, KNOWN_TYPES

Constants included from Constants

Constants::NOMOREVARIABLES_STR, Constants::NOSUCHINSTANCE_STR, Constants::NOSUCHOBJECT_STR

Instance Method Summary collapse

Methods inherited from SNMP::Open::Parser::ValueParser

find, #initialize

Constructor Details

This class inherits a constructor from SNMP::Open::Parser::ValueParser

Instance Method Details

#parse(tokens) ⇒ Object



88
89
90
# File 'lib/snmp/open/parser/value_parser.rb', line 88

def parse(tokens)
  @parse ||= [@type, tokens.next]
end