Class: Cucumber::JsSupport::JsHook
- Inherits:
-
Object
- Object
- Cucumber::JsSupport::JsHook
- Defined in:
- lib/cucumber/js_support/js_language.rb
Instance Method Summary (collapse)
-
- (JsHook) initialize(js_language, tag_expressions, js_function)
constructor
A new instance of JsHook.
- - (Object) invoke(location, scenario)
- - (Object) tag_expressions
Constructor Details
- (JsHook) initialize(js_language, tag_expressions, js_function)
A new instance of JsHook
62 63 64 |
# File 'lib/cucumber/js_support/js_language.rb', line 62 def initialize(js_language, tag_expressions, js_function) @js_language, @tag_expressions, @js_function = js_language, tag_expressions, js_function end |
Instance Method Details
- (Object) invoke(location, scenario)
70 71 72 |
# File 'lib/cucumber/js_support/js_language.rb', line 70 def invoke(location, scenario) @js_language.current_world.execute(@js_function) end |
- (Object) tag_expressions
66 67 68 |
# File 'lib/cucumber/js_support/js_language.rb', line 66 def tag_expressions @tag_expressions end |