class TZInfo::DataSources::PosixTimeZoneParser
def check_scan(s, pattern)
-
(InvalidPosixTimeZone)- if the pattern does not match the input.
Returns:
-
(String)- the result of the scan.
Parameters:
-
pattern(Regexp) -- the pattern to match. -
s(StringScanner) -- the `StringScanner` to scan.
def check_scan(s, pattern) result = s.scan(pattern) raise InvalidPosixTimeZone, "Expected '#{s.rest}' to match #{pattern} in POSIX-style time zone string." unless result result end