Object
# File lib/gherkin/formatter/json_formatter.rb, line 22
22: def background(background)
23: feature_elements << background.to_hash
24: end
# File lib/gherkin/formatter/json_formatter.rb, line 42
42: def eof
43: @io.write(@feature_hash.to_json)
44: end
# File lib/gherkin/formatter/json_formatter.rb, line 34
34: def examples(examples)
35: all_examples << examples.to_hash
36: end
# File lib/gherkin/formatter/json_formatter.rb, line 18
18: def feature(feature)
19: @feature_hash = feature.to_hash
20: end
# File lib/gherkin/formatter/json_formatter.rb, line 26
26: def scenario(scenario)
27: feature_elements << scenario.to_hash
28: end
# File lib/gherkin/formatter/json_formatter.rb, line 30
30: def scenario_outline(scenario_outline)
31: feature_elements << scenario_outline.to_hash
32: end
# File lib/gherkin/formatter/json_formatter.rb, line 56
56: def all_examples
57: feature_element['examples'] ||= []
58: end
# File lib/gherkin/formatter/json_formatter.rb, line 52
52: def feature_element
53: feature_elements[1]
54: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.