class Cucumber::Wire::Snippet::Generator

Public Class Methods

new(connections) click to toggle source
# File lib/cucumber/wire/snippet.rb, line 5
def initialize(connections)
  # This array is shared mutable state with the wire language.
  @connections = connections
end

Public Instance Methods

call(code_keyword, step_name, multiline_arg, snippet_type) click to toggle source
# File lib/cucumber/wire/snippet.rb, line 10
def call(code_keyword, step_name, multiline_arg, snippet_type)
  @connections.snippets(code_keyword, step_name, MultilineArgClassName.new(multiline_arg).to_s).join("\n")
end