Sha256: 1b518c254a637a0db8f8af6b8f9e3df5e71d4f2830659dd542570507940b0306

Contents?: true

Size: 258 Bytes

Versions: 8

Compression:

Stored size: 258 Bytes

Contents

module Gherkin
  module CLexer
    def self.[](i18n_language_name)
      name = i18n_language_name.gsub(/[\s-]/, '')
      require "gherkin_lexer_#{name}"
      i18n_lexer_class_name = name.capitalize
      const_get(i18n_lexer_class_name)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gherkin-1.0.5-i386-mswin32 lib/gherkin/c_lexer.rb
gherkin-1.0.5-i386-mingw32 lib/gherkin/c_lexer.rb
gherkin-1.0.5-java lib/gherkin/c_lexer.rb
gherkin-1.0.5 lib/gherkin/c_lexer.rb
gherkin-1.0.4-i386-mswin32 lib/gherkin/c_lexer.rb
gherkin-1.0.4-i386-mingw32 lib/gherkin/c_lexer.rb
gherkin-1.0.4-java lib/gherkin/c_lexer.rb
gherkin-1.0.4 lib/gherkin/c_lexer.rb