module ArticleJSON::Export::Common::HTML::Elements::Shared::Float

Public Instance Methods

floating_class() click to toggle source

The element's floating class, if necessary @return [String]

# File lib/article_json/export/common/html/elements/shared/float.rb, line 10
def floating_class
  "float-#{@element.float}" unless @element.float.nil?
end