Sha256: dfd2b9128f6bc107e8292af88556c21dce361666b2b087a7667c2615f7588ca8

Contents?: true

Size: 537 Bytes

Versions: 219

Compression:

Stored size: 537 Bytes

Contents

require 'rbconfig'

module Gherkin
  module CLexer
    def self.[](i18n_underscored_iso_code)
      begin
        prefix = Config::CONFIG['arch'] =~ /mswin|mingw/ ? "#{Config::CONFIG['MAJOR']}.#{Config::CONFIG['MINOR']}/" : ''
        lib = "#{prefix}gherkin_lexer_#{i18n_underscored_iso_code}"
        require lib
        const_get(i18n_underscored_iso_code.capitalize)
      rescue LoadError => e
        e.message << %{\nCouldn't load #{lib}\nThe $LOAD_PATH was:\n#{$LOAD_PATH.join("\n")}}
        raise e
      end
    end
  end
end

Version data entries

219 entries across 219 versions & 4 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/gherkin-2.3.3/lib/gherkin/c_lexer.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/gherkin-2.3.3/lib/gherkin/c_lexer.rb
gherkin-2.4.5 lib/gherkin/c_lexer.rb
gherkin-2.4.5-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.4.5-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.4.5-universal-dotnet lib/gherkin/c_lexer.rb
gherkin-2.4.5-java lib/gherkin/c_lexer.rb
gherkin-2.4.4-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.4.4-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.4.4-universal-dotnet lib/gherkin/c_lexer.rb
gherkin-2.4.4-java lib/gherkin/c_lexer.rb
gherkin-2.4.3 lib/gherkin/c_lexer.rb
gherkin-2.4.3-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.4.3-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.4.3-universal-dotnet lib/gherkin/c_lexer.rb
gherkin-2.4.3-java lib/gherkin/c_lexer.rb
gherkin-2.4.2 lib/gherkin/c_lexer.rb
gherkin-2.4.2-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.4.2-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.4.2-universal-dotnet lib/gherkin/c_lexer.rb