From: why the lucky stiff Date: 2003-01-13T15:50:28+09:00 Subject: [ANN] YAML.rb 0.49.1 -- Perfecting the parser, new merge indicator, base60 YAML.rb 0.49.1 now out. [http://yaml4r.sf.net/] This version includes a few fixes to work better with Windows and various versions of Ruby. We're parsing better than ever. And I've even got a few new features for ya. - The merge indicator is now '<<'. If you're not familiar with this indicator, that's because it was quietly introduced in 0.49. A merge will mix mapping elements into another mapping: mapping: name: Joe job: Accountant <<: age: 38 The above document comes out as a Ruby Hash: { 'mapping' => { 'name' => 'Joe', 'job' => 'Accountant', 'age' => 38 } } As you can see the deeper hash is merged into the hash containing the merge key. This is very useful for inheritance: - &ACCOUNTANT job: Accountant hourly_rate: 150 - name: Joe <<: *ACCOUNTANT - name: Mike <<: *ACCOUNTANT You can mixin multiple mappings as well. See http://yaml.org/type/merge for the full specification in the YAML type repository. - Base60 added for time and degrees representation. the following are equal: - 1:30 - 90 these two are equal as well: - 190:20:30 - 685230 # = 190 h 20 m 30 s This will show up at http://yaml.org/type/int in a few days. Nice little features long requested on yaml-core. Enjoy 0.49.1. Please contact me with your bug reports and assistance. I'd like 0.50 to be a solid package, which is only possible with your kind help. _why