lib/pulse_meter/sensor/configuration.rb
# Returns previously initialized sensor by name
# @param name [Symbol] sensor name
# @yield [sensor] Gives sensor(if it is found) to the block
Returns previously initialized sensor by name
Returns previously initialized sensor by name
def sensor(name)
        raise ArgumentError, "need a block" unless block_given?
        with_resque do
          s = sensors[name.to_s]
          yield(s) if s
        end
      end
def sensor ( name ) raise ArgumentError , "need a block" unless block_given? with_resque do s = sensors [ name . to_s ] yield ( s ) if s end end
Returns previously initialized sensor by name
Returns previously initialized sensor by name
name
None
]
<not_specific>
Gives sensor(if it is found) to the block
Gives sensor ( if it is found ) to the block