Parent

Class Index [+]

Quicksearch

Cucumber::JsSupport::JsStepDefinition

Public Class Methods

new(js_language, regexp, js_function) click to toggle source
    # File lib/cucumber/js_support/js_language.rb, line 33
33:       def initialize(js_language, regexp, js_function)
34:         @js_language, @regexp, @js_function = js_language, regexp.to_s, js_function
35:       end

Public Instance Methods

arguments_from(step_name) click to toggle source
    # File lib/cucumber/js_support/js_language.rb, line 42
42:       def arguments_from(step_name)
43:         matches = eval_js "#{@regexp}.exec('#{step_name}')"
44:         if matches
45:           matches.to_a[1..1].map do |match|
46:             JsArg.new(match)
47:           end
48:         end
49:       end
file_colon_line() click to toggle source
    # File lib/cucumber/js_support/js_language.rb, line 51
51:       def file_colon_line
52:         # Not possible yet to get file/line of js function with V8/therubyracer
53:         ""
54:       end
invoke(args) click to toggle source
    # File lib/cucumber/js_support/js_language.rb, line 37
37:       def invoke(args)
38:         args = @js_language.execute_transforms(args)
39:         @js_language.current_world.execute(@js_function, args)
40:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.