Module: Gherkin::CSharpLexer

Defined in:
lib/gherkin/csharp_lexer.rb

Class Method Summary collapse

Class Method Details

.[](i18n_language) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/gherkin/csharp_lexer.rb', line 5

def self.[](i18n_language)
  i18n_lexer_class_name = i18n_language.gsub(/[\s-]/, '').capitalize
  puts "In C# lexer: #{i18n_lexer_class_name}"
  Gherkin::ILexer
  puts "OK1"
  l = Gherkin::Lexer.__send__(i18n_lexer_class_name)
  puts "OK2"
  l
end