lib/bookmarks/netscape_bookmark.rb
# Public: Returns the bookmark as a String.
Returns the bookmark as a String.
Returns the bookmark as a String .
def to_s
      str = "<DT><A HREF=\"#{@url}\" " +
        "ADD_DATE=\"#{@date.nil? ? "" : @date.to_time.to_i}\" " +
        "TAGS=\"#{@tags}\">" +
        (@title.empty? ? 'None' : @title) + "</A>"
      if @description.empty?
        str
      else
        str + "\n<DD>#{@description}"
      end
    end
def to_s str = "<DT><A HREF=\"#{@url}\" " + "ADD_DATE=\"#{@date.nil? ? "" : @date.to_time.to_i}\" " + "TAGS=\"#{@tags}\">" + ( @title . empty? ? 'None' : @title ) + "</A>" if @description . empty? str else str + "\n<DD>#{@description}" end end
Public: Returns the bookmark as a String.
Public : Returns the bookmark as a String .