class Form
Public Instance Methods
addData()
click to toggle source
# File lib/form.rb, line 2 def addData puts "1/4: Enter Current Temparture" @ctemp = gets.chomp puts "2/4: Enter Unit (k, f, c)" @unit = gets.chomp puts "3/4: Enter Range" @range = gets.chomp puts "4/4: Enter Wanted Temparture" @wtemp = gets.chomp end
getData()
click to toggle source
# File lib/form.rb, line 16 def getData data = { "ctemp" => @ctemp.to_f, "unit" => @unit, "range" => @range.to_f, "wtemp" => @wtemp.to_f} end