Module: Jekyll::Embed::Filter

Defined in:
lib/jekyll/embed/filter.rb

Instance Method Summary collapse

Instance Method Details

#embed(url) ⇒ Object

This filter takes the URL passed as input an returns its HTML representation. Embed takes care of everything else.



8
9
10
11
12
# File 'lib/jekyll/embed/filter.rb', line 8

def embed(url)
  return url unless url.is_a? String

  Embed.embed url
end

#fallback(url) ⇒ Object



26
27
28
29
30
# File 'lib/jekyll/embed/filter.rb', line 26

def fallback(url)
  return url unless url.is_a? String

  Embed.fallback url
end

#oembed(url) ⇒ Object



14
15
16
17
18
# File 'lib/jekyll/embed/filter.rb', line 14

def oembed(url)
  return url unless url.is_a? String

  Embed.oembed url
end

#ogp(url) ⇒ Object



20
21
22
23
24
# File 'lib/jekyll/embed/filter.rb', line 20

def ogp(url)
  return url unless url.is_a? String

  Embed.ogp url
end