class TemperatureReadFile
Attributes
temp[R]
Public Class Methods
file_temperature(path)
click to toggle source
# File lib/temperature_read_file.rb, line 19 def self.file_temperature path @path = path f = File.open(path, "r") temp = f.sysread(6).to_f end
new()
click to toggle source
# File lib/temperature_read_file.rb, line 11 def initialize @temp = 0 end