module Hpricot::Container::Trav

def classes

Returns a list of CSS classes to which this element belongs.
def classes
  get_attribute('class').to_s.strip.split(/\s+/)
end