class CompanyManager::Main

Attributes

output[R]

Public Instance Methods

each_loop_process() click to toggle source
# File lib/company_manager.rb, line 14
def each_loop_process
  read_input
  process_commands
end
process_commands() click to toggle source
# File lib/company_manager.rb, line 25
def process_commands
  case output
  when 'help' then puts 'To jest pomoc'
  end
end
read_input() click to toggle source
# File lib/company_manager.rb, line 21
def read_input
  @output = $stdin.gets.chomp
end
run() click to toggle source
# File lib/company_manager.rb, line 7
def run
  loop do
    each_loop_process
    break if output == 'exit'
  end
end