A Ruby Transform holds a Regexp and a Proc, and is created by calling Transform in the <tt>support ruby files. See also RbDsl.
Example:
Transform /^(\d+) cucumbers$/ do |cucumbers_string| cucumbers_string.to_i end
# File lib/cucumber/rb_support/rb_transform.rb, line 29 def invoke(arg) if matched = match(arg) args = matched.captures.empty? ? [arg] : matched.captures @rb_language.current_world.cucumber_instance_exec(true, @regexp.inspect, *args, &@proc) end end
Generated with the Darkfish Rdoc Generator 2.