Ruby Programmer/Developer

George Armhold's Blog

Data-driven webapps built with Ruby, Java & Wicket

Blog Moved to Github/Octopress

I’m experimenting with Octopress as a potential Wordpress replacement.

I’ve grown tired of trying to properly format code with the Wordpress editor, so I’ve moved my blog from Wordpress (and before that Blogger) to Jekyll + Octopress, hosted on Github.

Let’s see how code formats under Octopress:

print_tree
1
2
3
4
5
6
7
8
9
10
11
  def print_tree(node, indent)

    puts indent + "#{node} -> "

    if node.kind_of? Container
      node.children.each do |child|
        print_tree(child, indent + Control::INDENT)
      end
    end

  end

Beautiful!