class Drawy::IO

Public Class Methods

accept(type, string) click to toggle source
# File lib/drawy/io.rb, line 8
def accept(type, string)
  print "\n#{string} "
  return $stdin.gets.to_i if type == :integer
  $stdin.gets.chomp
end
show(string) click to toggle source
# File lib/drawy/io.rb, line 4
def show(string)
  puts "\n#{string}"
end