Sha256: d4dd1e8b883400c0af818cdf571d8c3d2c2379271ff832ae9f6a13deef25ecee

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 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

1 entries across 1 versions & 1 rubygems

Version Path
te3270-0.5.1-x64-mingw32 lib/te3270/emulator_factory.rb