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