Sha256: 9f67685e338c1bdd4a41c677faa25ae8060fc1bbd9fed5bc94a9a7ea426fdeb9

Contents?: true

Size: 466 Bytes

Versions: 9

Compression:

Stored size: 466 Bytes

Contents

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

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
    }

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

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
te3270-jruby-0.4-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-jruby-0.3-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-jruby-0.1-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-0.4.1-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-0.4-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-0.3-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-jruby-0.1-universal-java-1.7 lib/te3270/emulator_factory.rb
te3270-0.2-x86-mingw32 lib/te3270/emulator_factory.rb
te3270-0.1-x86-mingw32 lib/te3270/emulator_factory.rb