module Pra::WindowSystemFactory

Public Class Methods

build(window_system_id) click to toggle source
# File lib/pra/window_system_factory.rb, line 7
def self.build(window_system_id)
  case window_system_id
  when 'curses'
    return Pra::CursesWindowSystem.new
  else
    raise Pra::WindowSystemFactory::UnknownWindowSystemId, ".build() doesn't know about a windows system identified by '#{window_system_id}'"
  end
end