class Cucumber::Formatter::Json
def create_step_hash(test_step)
def create_step_hash(test_step) step_source = @ast_lookup.step_source(test_step).step step_hash = { keyword: step_source[:keyword], name: test_step.text, line: test_step.location.lines.min } step_hash[:doc_string] = create_doc_string_hash(step_source[:doc_string]) unless step_source[:doc_string].nil? step_hash[:rows] = create_data_table_value(step_source[:data_table]) unless step_source[:data_table].nil? step_hash end