beatrichartz/configurations

View on GitHub
lib/configurations/maps/readers/tolerant.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Configurations
  module Maps
    module Readers
      class Tolerant
        def read(map, path)
          path.reduce(map) do |m, value|
            m[value] if m
          end
        end
      end
    end
  end
end