small medium large xlarge

12 Feb 2012, 16:05
Larry Cai (8 posts)

like this chapter, since it gives me working sample directly as new to ruby

Comments: 1. the example is using symbol instead of string, will be good to describe what’s benefit using symbol here 2. it goes directly to complicate yaml config file in p96 (b 6_0), probably add one more example like using array in yaml, then mention it can map to all ruby object.


17 Feb 2012, 13:48
David Copeland (512 posts)

Yeah, I thought about these, but wanted to avoid too much generic Ruby stuff, so I could focus on the command-line stuff.

For symbols/strings, it’s pretty common in ruby to use symbols as hash keys.

YAML is a pretty straightforward format, and it’s used for a lot of configuration files in Ruby. If you want to learn more about it, there’s the official yaml site (, or you could just play around with the the YAML library ( that comes with Ruby in IRB to see how it works.

You must be logged in to comment