Sha256: 1577217b872a448de5a1f54d33a8d806a0782cabab147411d6f9c55009c0e2a3

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

require 'te3270/emulators/extra'
require 'te3270/emulators/quick3270'
require 'te3270/emulators/x3270'

module TE3270
  #
  # Provides a mapping between a key used in the +emulator_for+ method
  # and the class that implements the access to the emulator.
  #
  module EmulatorFactory

    EMULATORS = {
        extra: TE3270::Emulators::Extra,
        quick3270: TE3270::Emulators::Quick3270,
        x3270: TE3270::Emulators::X3270
    }

    def self.emulator_for(platform)
      EMULATORS[platform]
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
te3270-0.7.1 lib/te3270/emulator_factory.rb
te3270-0.7.0 lib/te3270/emulator_factory.rb
te3270-0.6.0 lib/te3270/emulator_factory.rb
te3270-0.5.0-x86_64-darwin-14 lib/te3270/emulator_factory.rb