class TextReader
Public Class Methods
new()
click to toggle source
# File lib/text_reader.rb, line 2 def initialize end
open_file(file_name)
click to toggle source
# File lib/text_reader.rb, line 6 def self.open_file(file_name) File.open(file_name, "r") do |f| f.each_line do |line| return line.to_f end end end