Sha256: 1df7f648c2b54b8e176807e348bc6d74d880d00f6b1c696102b310b28ab2bdfb
Contents?: true
Size: 597 Bytes
Versions: 66
Compression:
Stored size: 597 Bytes
Contents
module Gherkin module Rubify if defined?(JRUBY_VERSION) # Translate Java objects to Ruby. # This is especially important to convert java.util.List coming # from Java and back to a Ruby Array. def rubify(o) case(o) when Java.java.util.Collection, Array o.map{|e| rubify(e)} when Java.gherkin.formatter.model.DocString require 'gherkin/formatter/model' Formatter::Model::DocString.new(o.value, o.line) else o end end else def rubify(o) o end end end end
Version data entries
66 entries across 66 versions & 1 rubygems