Class: Cucumber::JsSupport::JsHook

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/js_support/js_language.rb

Instance Method Summary (collapse)

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