lib/hamlit/attribute_compiler.rb in hamlit-2.6.1 vs lib/hamlit/attribute_compiler.rb in hamlit-2.6.2

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true require 'hamlit/attribute_builder' require 'hamlit/attribute_parser' require 'hamlit/ruby_expression' require 'hamlit/static_analyzer' @@ -39,14 +40,14 @@ keys.each do |key| values = [[:static, static_hash[key]], *dynamic_hashes.map { |h| [:dynamic, h[key]] }] values.select! { |_, exp| exp != nil } case key - when 'id'.freeze + when 'id' compile_id!(temple, key, values) - when 'class'.freeze + when 'class' compile_class!(temple, key, values) - when 'data'.freeze + when 'data' compile_data!(temple, key, values) when *AttributeBuilder::BOOLEAN_ATTRIBUTES, /\Adata-/ compile_boolean!(temple, key, values) else compile_common!(temple, key, values)