Module: Jekyll::Embed::Filter
- Defined in:
- lib/jekyll/embed/filter.rb
Instance Method Summary collapse
-
#embed(url) ⇒ Object
This filter takes the URL passed as input an returns its HTML representation.
- #fallback(url) ⇒ Object
- #oembed(url) ⇒ Object
- #ogp(url) ⇒ Object
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 (url) return url unless url.is_a? String 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 (url) return url unless url.is_a? String Embed. url end |