Sha256: f31ed081993f8ea755371ae22d47d21a306fd40434b5999854aa85ec452862f2
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 Bytes
Contents
# coding: utf-8 ################################################ # © Alexander Semyonov, 2013—2013, MIT License # # Author: Alexander Semyonov <al@semyonov.us> # ################################################ require 'giteaucrat/formatters/ruby_formatter' module Giteaucrat module Formatters class SassFormatter < RubyFormatter COMMENT_PARTS = %w(// // //) COPYRIGHT_REGEXP = %r{(?<ruler>//+\n)(?<copyright>(//\s*[^\s/]+.*\s//\n)+)(//\s+//?\n(?<comment>(//\s*.*//?\n)+))?\k<ruler>\n+} def include_encoding? false end def add_copyright! @contents = [format_copyright, contents].join("\n\n") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
giteaucrat-0.0.3 | lib/giteaucrat/formatters/sass_formatter.rb |