Sha256: a056d5bd0af6b70192f43caddf608b47ee8014467194b3d817ce958c60763126
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
class IdsPlease class GooglePlus < IdsPlease::BaseParser MASK = /google/i class << self def to_sym :google_plus end def parse(links) links.map { |l| parse_link(l) }.compact end private def parse_link(link) if matched = link.path.match(/\/(\+\w+)/) matched[1] elsif matched = link.path.match(/\/(\d{2,})/) matched[1] end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems