Module: Microformats2

Defined in:
lib/microformats2.rb,
lib/microformats2/parser.rb,
lib/microformats2/version.rb,
lib/microformats2/parser_core.rb,
lib/microformats2/absolute_uri.rb,
lib/microformats2/format_parser.rb,
lib/microformats2/property_parser.rb,
lib/microformats2/results/collection.rb,
lib/microformats2/results/property_set.rb,
lib/microformats2/time_property_parser.rb,
lib/microformats2/results/parser_result.rb

Defined Under Namespace

Classes: AbsoluteUri, Collection, FormatParser, InvalidPropertyPrefix, Parser, ParserCore, ParserResult, PropertyParser, PropertySet, TimePropertyParser

Constant Summary collapse

VERSION =
"3.1.0"

Class Method Summary collapse

Class Method Details

.parse(html, base: nil) ⇒ Object



18
19
20
# File 'lib/microformats2.rb', line 18

def parse(html, base: nil)
  Parser.new.parse(html, base: base)
end

.read_html(html) ⇒ Object



22
23
24
# File 'lib/microformats2.rb', line 22

def read_html(html)
  Parser.new.read_html(html)
end