# File lib/maruku/html.rb, line 166 def add_class(class_name) @fragment.each_element do |c| c.attributes['class'] = ((c.attributes['class']||'').split(' ') + [class_name]).join(' ') end end