lib/roadie/stylesheet.rb in roadie-3.5.1 vs lib/roadie/stylesheet.rb in roadie-4.0.0

- old
+ new

@@ -1,13 +1,15 @@ +# frozen_string_literal: true + module Roadie # Domain object that represents a stylesheet (from disc, perhaps). # # It has a name and a list of {StyleBlock}s. # # @attr_reader [String] name the name of the stylesheet ("stylesheets/main.css", "Admin user styles", etc.). The name of the stylesheet will be visible if any errors occur. # @attr_reader [Array<StyleBlock>] blocks class Stylesheet - BOM = "\xEF\xBB\xBF".force_encoding('UTF-8').freeze + BOM = (+"\xEF\xBB\xBF").force_encoding('UTF-8').freeze attr_reader :name, :blocks # Parses the CSS string into a {StyleBlock}s and stores it. #