Method: Aerospike::Utils::StringParser#expect

Defined in:
lib/aerospike/utils/string_parser.rb

#expect(char) ⇒ Object

Reads next character and raise if not matching desired one



34
35
36
# File 'lib/aerospike/utils/string_parser.rb', line 34

def expect(char)
  raise ::Aerospike::Exceptions::Parse unless @io.read(1) == char
end