I'm writing an application that controls a group/cluster of linux computers/nodes. I need to have a configuration file that lists the nodes in the cluster. It would be neat if the configuration file was in Ruby. If I had nodes named node1 and node3, the configuration file could look a little like: node :node1 do ip 192.whatever title "Node 1" end node :node2 do ip 192.whatever title "Node 2" end So, is there some standard Ruby idiom for how to read a file and execute the code? Just load the file and instance_eval it?