Class | Amrita::SourceCache |
In: |
lib/amrita/template.rb
|
Parent: | Object |
# File lib/amrita/template.rb, line 305 def initialize(dir) @dir = dir @module_cache = ModuleCache.new end
# File lib/amrita/template.rb, line 310 def get_item(typ, filename, key) case typ when :module @module_cache.get_item(typ, filename, key) when :source load_source(filename, key) else raise "can't happen wrong type #{typ}" end end