Class: Array
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
108 109 110 111 112 113 114 115 116 |
# File 'lib/syck/rubytypes.rb', line 108 def to_yaml( opts = {} ) Syck::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) ⇒ Object
107 |
# File 'lib/syck/rubytypes.rb', line 107 def yaml_initialize( tag, val ); concat( val.to_a ); end |