Public instance methods
filenames
()
[show source]
# File lib/nwn/key.rb, line 139 139: def filenames 140: @fn_to_co.indices 141: 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 130: def get_content_object filename 131: filename = filename.downcase 132: ret, bif = @fn_to_co[filename] 133: raise Errno::ENOENT, 134: "No ContentObject with the given filename #{filename.inspect} found." unless 135: ret 136: ret 137: end