Class: Cucumber::ClassSupport::ClassLanguage

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/class_support/class_language.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_mother) ⇒ ClassLanguage

Returns a new instance of ClassLanguage.



18
19
20
# File 'lib/cucumber/class_support/class_language.rb', line 18

def initialize(step_mother)
  @delegate = Java.cuke4duke.internal.jvmclass.ClassLanguage.new(self, Java.cuke4duke.spi.jruby.JRubyExceptionFactory.new, step_mother, self.class.analyzers)
end

Class Attribute Details

.analyzersObject (readonly)

Returns the value of attribute analyzers.



9
10
11
# File 'lib/cucumber/class_support/class_language.rb', line 9

def analyzers
  @analyzers
end

.snippet_generatorObject (readonly)

Returns the value of attribute snippet_generator.



9
10
11
# File 'lib/cucumber/class_support/class_language.rb', line 9

def snippet_generator
  @snippet_generator
end

Class Method Details

.add_analyzers(analyzer) ⇒ Object



11
12
13
14
15
# File 'lib/cucumber/class_support/class_language.rb', line 11

def add_analyzers(analyzer)
  @analyzers ||= []
  @analyzers << analyzer
  @snippet_generator = analyzer.snippet_generator
end

Instance Method Details

#snippet_text(step_keyword, step_name, multiline_arg_class = nil) ⇒ Object



22
23
24
# File 'lib/cucumber/class_support/class_language.rb', line 22

def snippet_text(step_keyword, step_name, multiline_arg_class = nil)
  self.class.snippet_generator.snippet_text(step_keyword, step_name, multiline_arg_class)
end