Parent

Files

Class/Module Index [+]

Quicksearch

Cucumber::RbSupport::Snippet::BaseSnippet

Public Class Methods

cli_option_string(type) click to toggle source
# File lib/cucumber/rb_support/snippet.rb, line 24
def self.cli_option_string(type)
  "%-7s: %-28s e.g. %s" % [type, description, example]
end
new(code_keyword, pattern, multiline_argument_class) click to toggle source
# File lib/cucumber/rb_support/snippet.rb, line 9
def initialize(code_keyword, pattern, multiline_argument_class)
  @number_of_arguments = 0
  @code_keyword = code_keyword
  @pattern = replace_and_count_capturing_groups(pattern)
  @multiline_argument_class = multiline_argument_class
end

Public Instance Methods

step() click to toggle source
# File lib/cucumber/rb_support/snippet.rb, line 20
def step
  "#{code_keyword}#{typed_pattern}"
end
to_s() click to toggle source
# File lib/cucumber/rb_support/snippet.rb, line 16
def to_s
  "#{step} #{do_block}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.