docs: def ruby_lines(text):
      """Tidy up lines from a file, honor # comments.
  
      Does not honor ruby block comments (yet).
      """
      if isinstance(text, basestring):
          text = text.splitlines()
      elif not isinstance(text, list):
          raise TypeError("text should be a list or a string, not %s"
                          % type(text))
      return [l.strip() for l in text if l.strip() and not
              l.strip().startswith('#')]