Sha256: 4c228e544b1969c5dea8ef63ee546ebf2a774e64eb290bea94707d9e3e317a80
Contents?: true
Size: 347 Bytes
Versions: 6
Compression:
Stored size: 347 Bytes
Contents
class IdsPlease module Parsers class Youtube < IdsPlease::Parsers::Base MASK = /youtu\.be|youtube/i class << self def parse_link(link) if link.path =~ /channels|user/ link.path.split('/')[2] else link.path.split('/')[1] end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems