Class: Configurations::Maps::Readers::Tolerant

Inherits:
Object
  • Object
show all
Defined in:
lib/configurations/maps/readers/tolerant.rb

Instance Method Summary collapse

Instance Method Details

#read(map, path) ⇒ Object



5
6
7
8
9
# File 'lib/configurations/maps/readers/tolerant.rb', line 5

def read(map, path)
  path.reduce(map) do |m, value|
    m[value] if m
  end
end