Class: Giteaucrat::Formatters::ErlangFormatter

Inherits:
CoffeeFormatter show all
Defined in:
lib/giteaucrat/formatters/erlang_formatter.rb

Constant Summary collapse

COMMENT_PARTS =
%w[% % %].freeze
%r{(?<ruler>%+\n)(?<copyright>(%\s*[^\s/]+.*\s%\n)+)(%\s+%?\n(?<comment>(%\s*.*%?\n)+))?\k<ruler>\n+}

Constants inherited from RubyFormatter

RubyFormatter::CODING_REGEXP

Constants inherited from Formatter

Formatter::HASHBANG_REGEXP

Instance Attribute Summary

Attributes inherited from Formatter

#comment_lines

Method Summary

Methods inherited from CoffeeFormatter

#add_copyright!, #encoding

Methods inherited from RubyFormatter

#encoding, #format_copyright, #format_line, #include_encoding?, #parse_comment, #remove_copyright!

Methods inherited from Formatter

#add_copyright!, #comment?, #comment_parts, #footer_ruler, #format_copyright, #format_line, #header_ruler, #parse_comment, #remove_copyright!, #ruler, #write_copyright!