Sha256: 018939a036c2fee8b310cb949796f5c3feeb6a4e64688cc2a467382f4a57344b

Contents?: true

Size: 543 Bytes

Versions: 249

Compression:

Stored size: 543 Bytes

Contents

require 'rbconfig'

module Gherkin
  module CLexer
    def self.[](i18n_underscored_iso_code)
      begin
        prefix = RbConfig::CONFIG['arch'] =~ /mswin|mingw/ ? "#{RbConfig::CONFIG['MAJOR']}.#{RbConfig::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

249 entries across 244 versions & 9 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/gherkin-2.12.2/lib/gherkin/c_lexer.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/gherkin-2.12.2/lib/gherkin/c_lexer.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/gherkin-2.12.2/lib/gherkin/c_lexer.rb
gherkin-2.12.2 lib/gherkin/c_lexer.rb
gherkin-2.12.2-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.12.2-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.12.2-java lib/gherkin/c_lexer.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/gherkin-2.11.1/lib/gherkin/c_lexer.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/gherkin-2.11.1/lib/gherkin/c_lexer.rb
candlepin-api-0.4.0 bundle/ruby/gems/gherkin-2.11.1/lib/gherkin/c_lexer.rb
gherkin-2.12.1 lib/gherkin/c_lexer.rb
gherkin-2.12.1-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.12.1-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.12.1-java lib/gherkin/c_lexer.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/lib/gherkin/c_lexer.rb
gherkin-2.12.0 lib/gherkin/c_lexer.rb
gherkin-2.12.0-x86-mingw32 lib/gherkin/c_lexer.rb
gherkin-2.12.0-x86-mswin32 lib/gherkin/c_lexer.rb
gherkin-2.12.0-java lib/gherkin/c_lexer.rb
gherkin-2.11.8 lib/gherkin/c_lexer.rb