Sha256: 7dfca2653a2a75fa779fee1ddf2c5e55c388f8706218066e5f249c58a1e41129
Contents?: true
Size: 613 Bytes
Versions: 183
Compression:
Stored size: 613 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.content_type, o.value, o.line) else o end end else def rubify(o) o end end end end
Version data entries
183 entries across 180 versions & 8 rubygems