method

[]

ruby latest stable - Class: YAML::Omap

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

[]( *vals )
public

No documentation available.

# File lib/yaml/types.rb, line 100
        def self.[]( *vals )
            o = Omap.new
            0.step( vals.length - 1, 2 ) do |i|
                o[vals[i]] = vals[i+1]
            end
            o
        end