lib/refinements/hashes.rb in refinements-7.14.0 vs lib/refinements/hashes.rb in refinements-7.15.0

- old
+ new

@@ -71,11 +71,11 @@ def flatten_keys! prefix: nil, delimiter: "_", cast: :to_sym replace flatten_keys(prefix: prefix, delimiter: delimiter, cast: cast) end def recurse &block - return self unless block_given? + return self unless block transform = yield self transform.each do |key, value| transform[key] = value.recurse(&block) if value.is_a? self.class @@ -117,10 +117,10 @@ def symbolize_keys! replace symbolize_keys end def use &block - return [] unless block_given? + return [] unless block block.parameters .map { |(_type, key)| self[key] } .then { |values| yield values } end