lib/tag_formatter/formatter.rb
def decommentify input
      output = input.dup
      # Remove multiline comments:
      output.gsub!(/(#{Regexp.quote @block_comment_start}.+?#{Regexp.quote @block_comment_end})/m, "")
      # Remove inline comments:
      output.gsub!(/(#{Regexp.quote @inline_comment_delimiter}.+$)/,"")
      return output.lines.map(&:strip).join($/)
    end
def decommentify input
      output = input.dup
      # Remove multiline comments:
      output.gsub!(/(#{Regexp.quote @block_comment_start}.+?#{Regexp.quote @block_comment_end})/m, "")
      # Remove inline comments:
      output.gsub!(/(#{Regexp.quote @inline_comment_delimiter}.+$)/,"")
      return output.lines.map(&:strip).join($/)
    end
Decommentifies the supplied input.

 @param [String] input The string to decommentify.
 @return A string with the decommented input.