| Class Amrita::ModuleCache |
|
| Methods |
| Included modules |
| Public Class methods |
| new() |
# File lib/amrita/template.rb, line 288 def initialize @hash = {} end
| Public Instance methods |
| get_item(typ, filename, key) |
# File lib/amrita/template.rb, line 292 def get_item(typ, filename, key) return nil unless typ == :module @hash[filename.to_s + key.to_s] end
| save_item(item) |
# File lib/amrita/template.rb, line 297 def save_item(item) @hash[item.filename.to_s + item.key.to_s] = item end