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
def rubify(o)
  if Java.java.util.Collection === o || Array === o
    o.map{|e| rubify(e)}
  else
    o
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.