class Archivist::Model::FormatIndex

Public Instance Methods

[](key)
Alias for: find
find(key) click to toggle source
# File lib/archivist/models/format_index.rb, line 10
def find(key)
  return nil if formats.nil?
  formats.find{ |value| value.format == key }
end
Also aliased as: []
text_format() click to toggle source
# File lib/archivist/models/format_index.rb, line 16
def text_format
  find("DjVuTXT")
end