Module: MyChart::Dsl::Output
- Included in:
- Chart
- Defined in:
- lib/my_chart/dsl/output.rb
Instance Attribute Summary collapse
-
#output_files ⇒ Object
readonly
Returns the value of attribute output_files.
Instance Method Summary collapse
Instance Attribute Details
#output_files ⇒ Object (readonly)
Returns the value of attribute output_files.
5 6 7 |
# File 'lib/my_chart/dsl/output.rb', line 5 def output_files @output_files end |
Instance Method Details
#output(*files_and_tmpl) ⇒ Object
7 8 9 10 11 12 13 |
# 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 |