class Nokogiri::XML::Element
Constants
- DEFAULT_FONT_SIZE
Public Instance Methods
bold?()
click to toggle source
# File lib/nokogiri/xml/element.rb, line 16 def bold? styles['font-weight'] && styles['font-weight'] == 'bold' end
font_size()
click to toggle source
The node's font size Used for guessing heading sizes
Returns a float with the font-size
# File lib/nokogiri/xml/element.rb, line 12 def font_size styles['font-size'] ? styles['font-size'].to_f : DEFAULT_FONT_SIZE end
italic?()
click to toggle source
# File lib/nokogiri/xml/element.rb, line 20 def italic? styles['font-style'] && styles['font-style'] == 'italic' end