Sha256: e7807d928107db2d87978cf5d405d81cd5d9b1ff8ab261bbcd6876059d2871c1

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

module MicroMicro
  module Parsers
    class EmbeddedMarkupPropertyParser < BasePropertyParser
      # @see https://microformats.org/wiki/microformats2-parsing#parsing_an_e-_property
      #
      # @return [Hash{Symbol => String}]
      def value
        @value ||=
          {
            html: node.inner_html.strip,
            value: super
          }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
micromicro-2.0.1 lib/micro_micro/parsers/embedded_markup_property_parser.rb
micromicro-2.0.0 lib/micro_micro/parsers/embedded_markup_property_parser.rb