module Mumukit::Templates::WithMashupFileContent
Public Instance Methods
compile_file_content(request)
click to toggle source
# File lib/mumukit/templates/with_mashup_file_content.rb, line 3 def compile_file_content(request) map_mashup_fields(*mashup_fields.map { |field| request.public_send field }).join("\n") end
map_mashup_fields(*fields)
click to toggle source
# File lib/mumukit/templates/with_mashup_file_content.rb, line 11 def map_mashup_fields(*fields) fields end
mashup_fields()
click to toggle source
# File lib/mumukit/templates/with_mashup_file_content.rb, line 7 def mashup_fields raise 'must define mashup fields' end