Sha256: d864d0c4a5fb01be3aac468bf263e18d91815c3f4d7e68fead8aaa18090f95a0
Contents?: true
Size: 421 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ids_please-1.0.3 | lib/ids_please/google_plus.rb |
ids_please-1.0.2 | lib/ids_please/google_plus.rb |
ids_please-1.0.1 | lib/ids_please/google_plus.rb |