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)
  map_mashup_fields(*mashup_fields.map { |field| request.public_send field }).join("\n")
end

#map_mashup_fields(*fields) ⇒ Object



11
12
13
# File 'lib/mumukit/templates/with_mashup_file_content.rb', line 11

def map_mashup_fields(*fields)
	fields
end

#mashup_fieldsObject



7
8
9
# File 'lib/mumukit/templates/with_mashup_file_content.rb', line 7

def mashup_fields
  raise 'must define mashup fields'
end