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