Class: Giteaucrat::Formatters::CoffeeFormatter
- Inherits:
-
RubyFormatter
- Object
- SimpleDelegator
- Formatter
- RubyFormatter
- Giteaucrat::Formatters::CoffeeFormatter
- Defined in:
- lib/giteaucrat/formatters/coffee_formatter.rb
Direct Known Subclasses
Constant Summary
Constants inherited from RubyFormatter
RubyFormatter::CODING_REGEXP, RubyFormatter::COMMENT_PARTS, RubyFormatter::COPYRIGHT_REGEXP
Constants inherited from Formatter
Instance Attribute Summary
Attributes inherited from Formatter
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 |
#encoding ⇒ Object
14 15 16 |
# File 'lib/giteaucrat/formatters/coffee_formatter.rb', line 14 def encoding nil end |