Sha256: 9fb21233ac7a393671e7fb0bc0dd2d4721f5ffcf948876a5111331f07a2e086f
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
module Barometer module Query module Format # # Base Format Class # # Fromats are used to determine if a query is of a certain # format, how to convert to and from that format # and what the country_code is for that format (if possible). # class Base def self.regex; raise NotImplementedError; end def self.geo(query); nil; end def self.convert_query(query); query; end def self.is?(query) !(query =~ self.regex).nil? end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems