Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • yaml/rubytypes.rb

Array

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
 
               # File yaml/rubytypes.rb, line 105
def to_yaml( opts = {} )
        YAML::quick_emit( self, opts ) do |out|
    out.seq( taguri, to_yaml_style ) do |seq|
        each do |x|
            seq.add( x )
        end
    end
end
end
            
yaml_initialize( tag, val ) click to toggle source
 
               # File yaml/rubytypes.rb, line 104
def yaml_initialize( tag, val ); concat( val.to_a ); end