class Typingpool::Template::Assignment
A Template::Assignment
works just like a regular template, except that within each transcript dir (Config#transcript and the built-in app template dir) we search within a subdir called 'assignment' first, then, after all the 'assignment' subdirs have been search, we look in the original template dirs.
Public Class Methods
look_in_from_config(*args)
click to toggle source
Calls superclass method
Typingpool::Template::look_in_from_config
# File lib/typingpool/template/assignment.rb, line 10 def self.look_in_from_config(*args) look_in = super(*args) look_in.unshift(look_in.reject{|dir| dir.empty? }.map{|dir| File.join(dir, 'assignment') }) look_in.flatten end