Module: Microformats

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

Defined Under Namespace

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

Constant Summary collapse

VERSION =
'4.1.0'.freeze

Class Method Summary collapse

Class Method Details

.parse(html, base: nil) ⇒ Object



19
20
21
# File 'lib/microformats.rb', line 19

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

.read_html(html) ⇒ Object



23
24
25
# File 'lib/microformats.rb', line 23

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