Class: Giteaucrat::Formatters::CoffeeFormatter

Inherits:
RubyFormatter show all
Defined in:
lib/giteaucrat/formatters/coffee_formatter.rb

Direct Known Subclasses

ErlangFormatter, SassFormatter

Constant Summary

Constants inherited from RubyFormatter

RubyFormatter::CODING_REGEXP, RubyFormatter::COMMENT_PARTS, RubyFormatter::COPYRIGHT_REGEXP

Constants inherited from Formatter

Formatter::HASHBANG_REGEXP

Instance Attribute Summary

Attributes inherited from Formatter

#comment_lines

Instance Method Summary collapse

Methods inherited from RubyFormatter

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

Methods inherited from Formatter

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

Instance Method Details

#add_copyright!Object



18
19
20
# File 'lib/giteaucrat/formatters/coffee_formatter.rb', line 18

def add_copyright!
  @contents = [format_copyright, contents].join("\n\n")
end

#encodingObject



14
15
16
# File 'lib/giteaucrat/formatters/coffee_formatter.rb', line 14

def encoding
  nil
end