Module: OEmbed::ProviderDecorator

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/jekyll/embed/oembed.rb', line 7

def self.included(base)
  base.class_eval do
    private def http_get(url, _)
      Jekyll::Embed.get(url.to_s).body
    rescue Faraday::Error
      raise OEmbed::UnknownResponse
    end
  end
end