class RichUrls::Parsers::EmbedParser::YoutubeShort

Public Instance Methods

match?() click to toggle source
# File lib/parsers/embed_parsers/youtube_short.rb, line 5
def match?
  @uri.host == 'youtu.be'
end
parse() click to toggle source
# File lib/parsers/embed_parsers/youtube_short.rb, line 9
def parse
  path = @uri.path
  path[0] = ''

  Youtube::IFRAME % path
end