module NWN::Key
Public Instance Methods
filenames()
click to toggle source
# File lib/nwn/key.rb, line 139 def filenames @fn_to_co.indices end
get_content_object(filename)
click to toggle source
Get the ContentObject pointing to the given filename. Raises ENOENT if not mapped.
# 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