class NWN::Resources::DirectoryContainer
A Container
that directly wraps a directory (e.g. override/). Does not update on changes - caches the directory entries on initialize.
Public Class Methods
new(path)
click to toggle source
Calls superclass method
NWN::Resources::Container::new
# File lib/nwn/res.rb, line 134 def initialize path super() @path = path Dir[path + File::SEPARATOR + "*.*"].each {|x| begin add_file x rescue ArgumentError => e NWN.log_debug e.to_s end } end