Class: MicroMicro::Parsers::ImpliedNamePropertyParser

Inherits:
BaseImpliedPropertyParser show all
Defined in:
lib/micro_micro/parsers/implied_name_property_parser.rb

Constant Summary collapse

HTML_ELEMENTS_MAP =
{
  "img"  => "alt",
  "area" => "alt",
  "abbr" => "title"
}.freeze

Instance Method Summary collapse

Methods inherited from BasePropertyParser

#initialize

Constructor Details

This class inherits a constructor from MicroMicro::Parsers::BasePropertyParser

Instance Method Details

#valueString



16
17
18
# File 'lib/micro_micro/parsers/implied_name_property_parser.rb', line 16

def value
  @value ||= attribute_value || text_content
end