Sha256: 655c915373afa3258547bd6bd8eada260100d6f9c4c3e2b0dbc334331cee6640

Contents?: true

Size: 324 Bytes

Versions: 65

Compression:

Stored size: 324 Bytes

Contents

module Gherkin
  module Rubify
    if defined?(JRUBY_VERSION)
      # Translate Java objects to Ruby.
      def rubify(o)
        if Java.java.util.Collection === o || Array === o
          o.map{|e| rubify(e)}
        else
          o
        end
      end
    else
      def rubify(o)
        o
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
gherkin-1.0.30 lib/gherkin/rubify.rb
gherkin-1.0.30-i386-mswin32 lib/gherkin/rubify.rb
gherkin-1.0.30-i386-mingw32 lib/gherkin/rubify.rb
gherkin-1.0.30-universal-dotnet lib/gherkin/rubify.rb
gherkin-1.0.30-java lib/gherkin/rubify.rb
gherkin-1.0.29 lib/gherkin/rubify.rb
gherkin-1.0.29-i386-mswin32 lib/gherkin/rubify.rb
gherkin-1.0.29-i386-mingw32 lib/gherkin/rubify.rb
gherkin-1.0.29-java lib/gherkin/rubify.rb
gherkin-1.0.28 lib/gherkin/rubify.rb
gherkin-1.0.28-i386-mswin32 lib/gherkin/rubify.rb
gherkin-1.0.28-i386-mingw32 lib/gherkin/rubify.rb
gherkin-1.0.28-java lib/gherkin/rubify.rb
gherkin-1.0.27 lib/gherkin/rubify.rb
gherkin-1.0.27-i386-mswin32 lib/gherkin/rubify.rb
gherkin-1.0.27-i386-mingw32 lib/gherkin/rubify.rb
gherkin-1.0.27-java lib/gherkin/rubify.rb
gherkin-1.0.26 lib/gherkin/rubify.rb
gherkin-1.0.26-i386-mswin32 lib/gherkin/rubify.rb
gherkin-1.0.26-i386-mingw32 lib/gherkin/rubify.rb