method

at

ruby latest stable - Class: YAML::BaseNode

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.

at( seg )
public

No documentation available.

# File lib/yaml/basenode.rb, line 69
        def at( seg )
            if Hash === @value
                self[seg]
            elsif Array === @value and seg =~ /\A\d+\Z/ and @value[seg.to_i]
                @value[seg.to_i]
            end
        end