lib/pulse_meter/sensor/configuration.rb
# Lazy collection of sensors, specified by opts
# @raise [ArgumentError] unless one of the sensors exists
Lazy collection of sensors, specified by opts
Lazy collection of sensors specified by opts
def sensors
        @sensors ||= @opts.each_with_object({}){ |(name, opts), sensor_acc|
          sensor_acc[name.to_s] = create_sensor(name, opts)
        }
      end
def sensors @sensors ||= @opts . each_with_object ( { } ) { | ( name , opts ) , sensor_acc | sensor_acc [ name . to_s ] = create_sensor ( name , opts ) } end
Lazy collection of sensors, specified by opts
Lazy collection of sensors specified by opts
[ArgumentError] unless one of the sensors exists
[ ArgumentError ] unless one of the sensors exists