lib/danica/variables_holder/store.rb in danica-2.7.4 vs lib/danica/variables_holder/store.rb in danica-2.7.5

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Danica class VariablesHolder::Store attr_reader :default_variables_hash, :variables_names def initialize(default_variables_hash) @@ -35,11 +37,11 @@ private def named_variables_hash variable_variables.inject({}) do |hash, (key, container)| - hash.merge( (container.content.name || key).to_sym => container ) + hash.merge((container.content.name || key).to_sym => container) end end def variable_variables containers_hash.select do |_, container| @@ -62,6 +64,5 @@ Wrapper::Container.new(value) end end end end -