class Rzman::CLI
Public Instance Methods
call()
click to toggle source
# File lib/rzman/CLI.rb, line 6 def call puts "Welcome to RZman!".colorize(:light_blue) menu end
get_shabbat_zmanim()
click to toggle source
# File lib/rzman/CLI.rb, line 79 def get_shabbat_zmanim Rzman::Zmanim.shabbat_time puts "Do you want to go back to the main menu? (y/n):".colorize(:light_cyan) choice = gets.strip if choice == "y" menu else goodbye end end
get_zmanim()
click to toggle source
# File lib/rzman/CLI.rb, line 68 def get_zmanim Rzman::Zmanim.zmanim_today puts "Do you want to go back to the main menu? (y/n):".colorize(:light_cyan) choice = gets.strip if choice == "y" menu else goodbye end end
goodbye()
click to toggle source
# File lib/rzman/CLI.rb, line 90 def goodbye puts "Happy davening!".colorize(:light_blue) puts "RZman brought to you by Rabbi Ben Greenberg.".colorize(:light_blue) exit end
zip_valid?()
click to toggle source
# File lib/rzman/CLI.rb, line 63 def zip_valid? @@zip_input.to_s @@zip_input.match(/^\d{5}$/) end