class Giteaucrat::Formatters::JavaFormatter

Constants

COMMENT_PARTS

Public Instance Methods

format_line(line) click to toggle source
# File lib/giteaucrat/formatters/java_formatter.rb, line 18
def format_line(line)
  " * #{line} *"
end
header_ruler(line_width) click to toggle source
# File lib/giteaucrat/formatters/java_formatter.rb, line 22
def header_ruler(line_width)
  "/*#{'*' * (line_width - 3)}"
end
parse_comment(comment) click to toggle source
# File lib/giteaucrat/formatters/java_formatter.rb, line 30
def parse_comment(comment)
  comment_lines = comment.split("\n").map do |line|
    line.sub(/\A\s\*\s?/, '').sub(/\s*\*\s*\Z/, '')
  end
  @comment_lines = comment_lines
end