Sha256: a8db84ab0a285b41bde8932341506cb76b9fd52573a68b1dd75edd17cc0fcf00
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
require "nokogiri" require "open-uri" require "json" require "microformats2/version" require "microformats2/absolute_uri" require "microformats2/parser_core" require "microformats2/parser" require "microformats2/format_parser" require "microformats2/property_parser" require "microformats2/time_property_parser" require "microformats2/results/parser_result" require "microformats2/results/collection" require "microformats2/results/property_set" module Microformats2 class << self def parse(html, base: nil) Parser.new.parse(html, base: base) end def read_html(html) Parser.new.read_html(html) end end # class << self class InvalidPropertyPrefix < StandardError; end end #duplicate of above to allow for early adopters to use Microformats.parse instead of Microformats2.parse module Microformats class << self def parse(html, base: nil) Microformats2::Parser.new.parse(html, base: base) end def read_html(html) Microformats2::Parser.new.read_html(html) end end # class << self class InvalidPropertyPrefix < StandardError; end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
microformats2-3.1.0 | lib/microformats2.rb |