Class: SNMP::Open::Parser::ValueParser::Integer
- Inherits:
-
SNMP::Open::Parser::ValueParser
- Object
- SNMP::Open::Parser::ValueParser
- SNMP::Open::Parser::ValueParser::Integer
- Defined in:
- lib/snmp/open/parser/value_parser.rb
Overview
parses integer-like objects
Constant Summary
Constants inherited from SNMP::Open::Parser::ValueParser
Constants included from Constants
Constants::NOMOREVARIABLES_STR, Constants::NOSUCHINSTANCE_STR, Constants::NOSUCHOBJECT_STR
Instance Method Summary collapse
Methods inherited from SNMP::Open::Parser::ValueParser
Constructor Details
This class inherits a constructor from SNMP::Open::Parser::ValueParser
Instance Method Details
#parse(tokens) ⇒ Object
44 45 46 |
# File 'lib/snmp/open/parser/value_parser.rb', line 44 def parse(tokens) @parse ||= [@type, Integer(tokens.next)] end |