Sha256: 13b475a30ed8978ebf900c55346279ce699e24cfde1b1f491170ee22c3915ae1

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

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

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,
        virtel: TE3270::Emulators::Virtel
    }

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
te3270-0.8.1 lib/te3270/emulator_factory.rb
te3270-0.8.0 lib/te3270/emulator_factory.rb