Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley974 committed Mar 14, 2017
1 parent 097ba1a commit c8687f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ def self.table(datas)
table = Terminal::Table.new headings: HEADER, rows: datas
table.align_column(1, :center)
table.align_column(2, :center)
puts table.render.split("\n").map { |ln| ln.center(50) }.join("\n")
puts table.render.split("\n").map { |ln| ln.center(SPACES) }.join("\n")
end
end

0 comments on commit c8687f7

Please sign in to comment.