# File lib/gherkin/i18n.rb, line 55 def language_table require 'stringio' require 'gherkin/formatter/pretty_formatter' require 'gherkin/formatter/model' io = defined?(JRUBY_VERSION) ? Java.java.io.StringWriter.new : StringIO.new pf = Gherkin::Formatter::PrettyFormatter.new(io, true) table = all.map do |i18n| Formatter::Model::Row.new([], [i18n.iso_code, i18n.keywords('name')[0], i18n.keywords('native')[0]], nil) end pf.table(table) if defined?(JRUBY_VERSION) io.getBuffer.toString else io.string end end