lib/hanami/assets/bundler/compressor.rb in hanami-assets-1.3.4 vs lib/hanami/assets/bundler/compressor.rb in hanami-assets-1.3.5

- old
+ new

@@ -1,20 +1,22 @@ +# frozen_string_literal: true + module Hanami module Assets class Bundler # Compresses a JS or CSS file # # @since 0.3.0 # @api private class Compressor # @since 0.3.0 # @api private - JAVASCRIPT_EXT = '.js'.freeze + JAVASCRIPT_EXT = ".js" # @since 0.3.0 # @api private - STYLESHEET_EXT = '.css'.freeze + STYLESHEET_EXT = ".css" # Return a new instance # # @since 0.3.0 # @api private @@ -37,10 +39,10 @@ private # @since 0.3.0 # @api private def compressor(type) - @configuration.__send__(:"#{ type }_compressor") + @configuration.__send__(:"#{type}_compressor") end # @since 0.3.0 # @api private def _compress(compressor)