Class: NewFirmware::Logger

Inherits:
Object show all
Defined in:
lib/sensors/basic_message_arduino_sensor.rb

Instance Method Summary collapse

Constructor Details

#initializeLogger


150
151
152
# File 'lib/sensors/basic_message_arduino_sensor.rb', line 150

def initialize
  @file = File.open "/tmp/opensprintslog", "w"
end

Instance Method Details

#puts(message) ⇒ Object


154
155
156
157
# File 'lib/sensors/basic_message_arduino_sensor.rb', line 154

def puts(message)
  @file.puts message
  @file.flush
end