class Hoe

def parse_urls text

def parse_urls text
  lines = text.gsub(/^\* /, '').split(/\n/).grep(/\S+/)
  if lines.first =~ /::/ then
    Hash[lines.map { |line| line.split(/\s*::\s*/) }]
  else
    lines
  end
end