Module: Mumukit::Templates::WithMashupFileContent
- Defined in:
- lib/mumukit/templates/with_mashup_file_content.rb
Instance Method Summary collapse
Instance Method Details
#compile_file_content(request) ⇒ Object
3 4 5 |
# File 'lib/mumukit/templates/with_mashup_file_content.rb', line 3 def compile_file_content(request) mashup_fields.map { |field| request.public_send field }.join("\n") end |
#mashup_fields ⇒ Object
7 8 9 |
# File 'lib/mumukit/templates/with_mashup_file_content.rb', line 7 def mashup_fields raise 'must define mashup fields' end |