CSV::Scanner receives a CSV
output, scans it and return the content. It also controls the life cycle of the object with its methods keep_start
, keep_end
, keep_back
, keep_drop
.
Uses StringScanner
(the official strscan gem). Strscan provides lexical scanning operations on a String
. We inherit its object and take advantage on the methods. For more information, please visit: ruby-doc.org/stdlib-2.6.1/libdoc/strscan/rdoc/StringScanner.html
CSV::InputsScanner receives IO
inputs, encoding and the chunk_size. It also controls the life cycle of the object with its methods keep_start
, keep_end
, keep_back
, keep_drop
.
CSV::InputsScanner.scan() tries to match with pattern at the current position. If there’s a match, the scanner advances the “scan pointer” and returns the matched string. Otherwise, the scanner returns nil.
CSV::InputsScanner.rest() returns the “rest” of the string (i.e. everything after the scan pointer). If there is no more data (eos? = true), it returns “”.
See Net::HTTPGenericRequest
for attributes and methods. See Net::HTTP
for usage examples.
See Net::HTTPGenericRequest
for attributes and methods.
See Net::HTTPGenericRequest
for attributes and methods.
Indicates that the DNS
response was unable to be decoded.
Indicates that the DNS
request was unable to be encoded.
A DNS
query abstract class.
This class is used by rubygems to build Rust extensions. It is a thin-wrapper over the ‘cargo rustc` command which takes care of building Rust code in a way that Ruby can use.
Raised when you haven’t provided enough input to your MockGemUi