Class: Cucumber::ClassSupport::ClassLanguage
- Inherits:
-
Object
- Object
- Cucumber::ClassSupport::ClassLanguage
- Defined in:
- lib/cucumber/class_support/class_language.rb
Class Attribute Summary collapse
-
.analyzers ⇒ Object
readonly
Returns the value of attribute analyzers.
-
.snippet_generator ⇒ Object
readonly
Returns the value of attribute snippet_generator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(step_mother) ⇒ ClassLanguage
constructor
A new instance of ClassLanguage.
- #snippet_text(step_keyword, step_name, multiline_arg_class = nil) ⇒ Object
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
.analyzers ⇒ Object (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_generator ⇒ Object (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 |