Sha256: e235822ff60750dda2624116805bb7875c033fc54face203f57103d3be88b57f

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

require "fourteeninch/screens"
module Fourteeninch
  class MainMenu
    def self.intro
      puts Fourteeninch::Screens.intro
      print 'Enter command number: '
      menu = $stdin.gets.chomp
      case menu
      when '1'
        return 1
      when '2'
        return 2
      when '9'
        return 9
      when '0'
        return -1
      else
        return 0
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fourteeninch-0.1.0 lib/fourteeninch/main_menu.rb