Class: BookDeals::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/book_deals/cli.rb

Overview

manages program’s input/output

Instance Method Summary collapse

Instance Method Details

#askObject



5
6
7
8
9
# File 'lib/book_deals/cli.rb', line 5

def ask
  puts "\n"
  self.say("Enter your selection:".colorize(:blue))
  gets.chomp
end

#say(output) ⇒ Object



11
12
13
14
# File 'lib/book_deals/cli.rb', line 11

def say(output)
  puts "\n"
  puts output
end