Methods

Gherkin::Rubify

Public Instance Methods

rubify(o) click to toggle source

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
rubify(o) click to toggle source
    # File lib/gherkin/rubify.rb, line 19
19:       def rubify(o)
20:         o
21:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.