Sha256: e9bd63e13881a346ab8ca2b6f58ad9a4fcfd75bd234fdc0061d514afd99dbe87
Contents?: true
Size: 527 Bytes
Versions: 7
Compression:
Stored size: 527 Bytes
Contents
class IdsPlease module Parsers class GooglePlus < IdsPlease::Parsers::Base MASK = /google/i class << self def to_sym :google_plus end def interact(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 end
Version data entries
7 entries across 7 versions & 1 rubygems