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