module ArticleJSON::Import::GoogleDoc::HTML::Shared::Float
Public Instance Methods
float()
click to toggle source
Check if the quote is floating (left, right or not at all) @return [Symbol]
# File lib/article_json/import/google_doc/html/shared/float.rb, line 9 def float return unless @float_node.has_attribute?('class') node_class = @float_node.attribute('class').value || '' return :right if @css_analyzer.right_aligned?(node_class) return :left if @css_analyzer.left_aligned?(node_class) nil end