# File lib/gherkin/i18n.rb, line 57 def language_table require 'stringio' require 'gherkin/formatter/pretty_formatter' require 'gherkin/formatter/model' io = StringIO.new pf = Gherkin::Formatter::PrettyFormatter.new(io, true, false) table = all.map do |i18n| Formatter::Model::DataTableRow.new([], [i18n.iso_code, i18n.keywords('name')[0], i18n.keywords('native')[0]], nil) end pf.table(table) io.string end