lib/slim_lint/document.rb in slim_lint-0.6.1 vs lib/slim_lint/document.rb in slim_lint-0.7.0
- old
+ new
@@ -1,9 +1,11 @@
+# frozen_string_literal: true
+
module SlimLint
# Represents a parsed Slim document and its associated metadata.
class Document
# File name given to source code parsed from just a string.
- STRING_SOURCE = '(string)'
+ STRING_SOURCE = '(string)'.freeze
# @return [SlimLint::Configuration] Configuration used to parse template
attr_reader :config
# @return [String] Slim template file path