class Form
Public Instance Methods
ask_limit()
click to toggle source
# File lib/form.rb, line 20 def ask_limit puts "What is the limit?" @limit = gets.to_f end
ask_range()
click to toggle source
# File lib/form.rb, line 11 def ask_range puts "What is the range?" @range = gets.to_f end
ask_temp()
click to toggle source
# File lib/form.rb, line 2 def ask_temp puts "What is the temp?" @temp = gets.to_f end
ask_unit()
click to toggle source
# File lib/form.rb, line 29 def ask_unit puts "Choose your unit(K,F,C)" @unit = gets.downcase.delete!("\n") end
get_limit()
click to toggle source
# File lib/form.rb, line 25 def get_limit @limit end
get_range()
click to toggle source
# File lib/form.rb, line 16 def get_range @range end
get_temp()
click to toggle source
# File lib/form.rb, line 7 def get_temp @temp end
get_unit()
click to toggle source
# File lib/form.rb, line 34 def get_unit @unit end