Method: Rabbit::Parser::SlidePropertySetter#apply

Defined in:
lib/rabbit/parser.rb

#apply(element) ⇒ Object

[View source]

50
51
52
53
54
55
56
# File 'lib/rabbit/parser.rb', line 50

def apply(element)
  return unless element.is_a?(Element::DescriptionList)
  element.each do |item|
    name = Parser.normalize_property_name(item.term.text)
    @slide[name] = item.content.text.strip
  end
end