Class: Widgetify::OembedParser
- Defined in:
- lib/parser/oembed_parser.rb
Instance Method Summary collapse
-
#initialize(html_doc, options = {}) ⇒ OembedParser
constructor
A new instance of OembedParser.
Constructor Details
#initialize(html_doc, options = {}) ⇒ OembedParser
Returns a new instance of OembedParser.
26 27 28 29 30 31 32 |
# File 'lib/parser/oembed_parser.rb', line 26 def initialize(html_doc, = {}) super(html_doc) @html_doc = html_doc @options = @options[:format] = 'json' if !@options[:format] end |