Class: Gitlab::ImportFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/import_formatter.rb

Instance Method Summary collapse

Instance Method Details

#author_line(author) ⇒ Object


11
12
13
# File 'lib/gitlab/import_formatter.rb', line 11

def author_line(author)
  "*Created by: #{author}*\n\n"
end

#comment(author, date, body) ⇒ Object


3
4
5
# File 'lib/gitlab/import_formatter.rb', line 3

def comment(author, date, body)
  "\n\n*By #{author} on #{date}*\n\n#{body}"
end

#comments_headerObject


7
8
9
# File 'lib/gitlab/import_formatter.rb', line 7

def comments_header
  "\n\n\n**Imported comments:**\n"
end