module Haml::ObjectRef

def parse(args)

def parse(args)
  object, prefix = args
  return {} unless object
  suffix = underscore(object.class)
  {
    'class' => [prefix, suffix].compact.join('_'),
    'id'    => [prefix, suffix, object.id || 'new'].compact.join('_'),
  }
end