Translate Java objects to Ruby. This is especially important to convert java.util.List coming from Java and back to a Ruby Array.
# File lib/gherkin/rubify.rb, line 7
7: def rubify(o)
8: case(o)
9: when Java.java.util.Collection, Array
10: o.map{|e| rubify(e)}
11: when Java.gherkin.formatter.model.PyString
12: require 'gherkin/formatter/model'
13: Formatter::Model::PyString.new(o.value, o.line)
14: else
15: o
16: end
17: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.