lib/roadie/style_block.rb in roadie-4.0.0 vs lib/roadie/style_block.rb in roadie-5.0.0

- old
+ new

@@ -1,8 +1,8 @@ # frozen_string_literal: true -require 'forwardable' +require "forwardable" module Roadie # @api private # A style block is the combination of a {Selector} and a list of {StyleProperty}. class StyleBlock @@ -37,19 +37,19 @@ # String representation of the style block. This is valid CSS and can be # used in the DOM. # @return {String} def to_s # NB - leave off redundant final semicolon - see https://www.w3.org/TR/CSS2/syndata.html#declaration - "#{selector}{#{properties.map(&:to_s).join(';')}}" + "#{selector}{#{properties.map(&:to_s).join(";")}}" end private # A media query cannot be inlined if it contains any advanced rules # e.g. @media only screen {...} is ok to inline but # @media only screen and (max-width: 600px) {...} cannot be inlined # @return {Boolean} def inlinable_media? - @media.none? { |media_query| media_query.include? '(' } + @media.none? { |media_query| media_query.include? "(" } end end end