# from http://www.artima.com/rubycs/articles/ruby_as_dsl.html require 'mydsl4' my_dsl = MyDSL.load(ARGV.shift) # put the DSL filename on the command line p my_dsl p my_dsl.instance_variables