class FileReader

Attributes

temperature[R]

Public Class Methods

new(filename) click to toggle source
# File lib/reader/file_reader.rb, line 5
def initialize(filename)
    contents = File.open(filename, 'rb') { |f| f.read }
    @temperature = contents.to_f
end