Module NWN::Key

  1. lib/nwn/key.rb

Methods

public instance

  1. filenames
  2. get_content_object

Classes and Modules

Class NWN::Key::Bif
Class NWN::Key::Key

Public instance methods

filenames ()
[show source]
# File lib/nwn/key.rb, line 139
    def filenames
      @fn_to_co.indices
    end
get_content_object (filename)

Get the ContentObject pointing to the given filename. Raises ENOENT if not mapped.

[show source]
# File lib/nwn/key.rb, line 130
    def get_content_object filename
      filename = filename.downcase
      ret, bif = @fn_to_co[filename]
      raise Errno::ENOENT,
        "No ContentObject with the given filename #{filename.inspect} found." unless
          ret
      ret
    end