Sha256: df65a08e92281c657825a98117804fbe940d788f78b7ef17e14219ef8c07d994

Contents?: true

Size: 247 Bytes

Versions: 7

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

module Wayfarer
  module Parsing
    module XML
    module_function

      def parse_xml(xml)
        Nokogiri::XML(xml)
      end

      def parse_html(html)
        Nokogiri::HTML(html)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wayfarer-0.4.6 lib/wayfarer/parsing/xml.rb
wayfarer-0.4.5 lib/wayfarer/parsing/xml.rb
wayfarer-0.4.4 lib/wayfarer/parsing/xml.rb
wayfarer-0.4.3 lib/wayfarer/parsing/xml.rb
wayfarer-0.4.2 lib/wayfarer/parsing/xml.rb
wayfarer-0.4.1 lib/wayfarer/parsing/xml.rb
wayfarer-0.4.0 lib/wayfarer/parsing/xml.rb