Boatzart
Member since Dec 26, 2010
- Profile: /members/7502-boatzart.htm
- Comments: 1
Recent Blog Comments By Boatzart
-
Seven Languages In Seven Weeks: Ruby - Day 2
Posted on Dec 26, 2010 at 10:57 PM
I just got this book for Christmas, and I had a lot of fun/trouble with #2 as well. I'm still terrible at Ruby, so I'm not sure how Rubythonic (or whatever people say) this is, but here's my solution: class Tree attr_accessor :children, :node_name def initialize(spec) @node_name = spe... read more »