Class: Zine::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/zine/query.rb

Overview

Returns an answer from the CLI

Instance Method Summary collapse

Instance Method Details

#call(question) ⇒ Object



6
7
8
9
10
# File 'lib/zine/query.rb', line 6

def call(question)
  puts question
  result = $stdin.gets.chomp
  result == '' ? 'Y' : result
end