Mime::Mimes Ruby on Rails 5.1.2 Class Mime::Mimes < Object actionpack/lib/action_dispatch/http/mime_type.rb Methods # << D delete_if E each N new S symbols Included Modules Enumerable Class Public methods new() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/mime_type.rb, line 9 def initialize @mimes = [] @symbols = nil end Instance Public methods <<(type) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/mime_type.rb, line 18 def <<(type) @mimes << type @symbols = nil end delete_if() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/mime_type.rb, line 23 def delete_if @mimes.delete_if { |x| yield x }.tap { @symbols = nil } end each() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/mime_type.rb, line 14 def each @mimes.each { |x| yield x } end symbols() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/mime_type.rb, line 27 def symbols @symbols ||= map(&:to_sym) end