module Crack::Util

def to_xml_attributes(hash)

def to_xml_attributes(hash)
  hash.map do |k,v|
    %{#{Crack::Util.snake_case(k.to_s).sub(/^(.{1,1})/) { |m| m.downcase }}="#{v.to_s.gsub('"', '"')}"}
  end.join(' ')
end