Parent

Class Index [+]

Quicksearch

Cucumber::Formatter::Steps

The formatter used for --format steps

Public Class Methods

new(step_mother, path_or_io, options) click to toggle source
    # File lib/cucumber/formatter/steps.rb, line 6
 6:       def initialize(step_mother, path_or_io, options)
 7:         @io = ensure_io(path_or_io, "steps")
 8:         @options = options
 9:         @step_definition_files = collect_steps(step_mother)
10:       end

Public Instance Methods

after_features(features) click to toggle source
    # File lib/cucumber/formatter/steps.rb, line 12
12:       def after_features(features)
13:         print_summary
14:       end

Private Instance Methods

collect_steps(step_mother) click to toggle source
    # File lib/cucumber/formatter/steps.rb, line 36
36:       def collect_steps(step_mother)
37:         step_mother.step_definitions.inject({}) do |step_definitions, step_definition|
38:           step_definitions[step_definition.file] ||= []
39:           step_definitions[step_definition.file] << [ step_definition.file_colon_line, step_definition.regexp_source ]
40:           step_definitions
41:         end
42:       end
source_indent(sources) click to toggle source
    # File lib/cucumber/formatter/steps.rb, line 44
44:       def source_indent(sources)
45:         sources.map { |file_colon_line, regexp| regexp.size }.max + 1
46:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.