module MyChart::Dsl::Output
Attributes
output_files[R]
Public Instance Methods
output(*files_and_tmpl)
click to toggle source
# File lib/my_chart/dsl/output.rb, line 7 def output *files_and_tmpl tmpl, files = extract_tmpl_file_address files_and_tmpl @output_files ||= [] files.each do |f| @output_files << [f, tmpl] end end
Private Instance Methods
extract_tmpl_file_address(args)
click to toggle source
# File lib/my_chart/dsl/output.rb, line 17 def extract_tmpl_file_address args if args[-1].kind_of? Hash [args.pop[:tmpl], args] else [DEFAULT_TMPL, args] end end