Method: MicroMicro::Parsers::ImpliedPhotoPropertyParser#value

Defined in:
lib/micro_micro/parsers/implied_photo_property_parser.rb

#valueString, ...



19
20
21
22
23
24
25
26
27
28
# File 'lib/micro_micro/parsers/implied_photo_property_parser.rb', line 19

def value
  @value ||=
    if attribute_value
      if candidate_node.matches?("img[alt], img[srcset]")
        ImageElementParser.new(candidate_node, attribute_value).to_h
      else
        attribute_value
      end
    end
end