public
Description: A simple DSL that generates HTML charts from an input DSL file
Homepage:
Clone URL: git://github.com/balinterdi/chart-maker-dsl.git
chart-maker-dsl / chart_loader.rb
100644 14 lines (10 sloc) 0.179 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require "chart"
 
class ChartLoader
def self.load_chart(dsl_filename)
c = ChartDSL.new
c.load(dsl_filename)
end
end
 
if __FILE__ == $0
ChartLoader.load_chart(ARGV[0])
end