Class NWN::Resources::DirectoryContainer

  1. lib/nwn/res.rb

A Container that directly wraps a directory (e.g. override/). Does not update on changes - caches the directory entries on initialize.

Methods

public class

  1. new

Public class methods

new (path)
[show source]
# File lib/nwn/res.rb, line 115
      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