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)
[show source]
# File lib/nwn/res.rb, line 115 115: def initialize path 116: super() 117: @path = path 118: Dir[path + "/*.*"].each {|x| 119: begin add_file x 120: rescue ArgumentError => e 121: NWN.log_debug e.to_s 122: end 123: } 124: end