Sha256: 9c3b65223a91c590ba4218713566de6a15fa76de6fdf55aff9d24a539442a839

Contents?: true

Size: 178 Bytes

Versions: 6

Compression:

Stored size: 178 Bytes

Contents

module ConsoleHelper
  def get_input(message)
    puts message
    value = gets
    value == 'exit' ? exit_program : next_step(value)
  end

  def exit_program
    exit
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
joe_utils-0.0.6 lib/joe_utils/console_helper.rb
joe_utils-0.0.5 lib/joe_utils/console_helper.rb
joe_utils-0.0.4 lib/joe_utils/console_helper.rb
joe_utils-0.0.3 lib/joe_utils/console_helper.rb
joe_utils-0.0.2 lib/joe_utils/console_helper.rb
joe_utils-0.0.0 lib/joe_utils/console_helper.rb