class Mime::Mimes
Public Class Methods
new()
click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 9 def initialize @mimes = [] @symbols = nil end
Public Instance Methods
<<(type)
click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 18 def <<(type) @mimes << type @symbols = nil end
delete_if() { |x| ... }
click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 23 def delete_if @mimes.delete_if { |x| yield x }.tap { @symbols = nil } end
each() { |x| ... }
click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 14 def each @mimes.each { |x| yield x } end
symbols()
click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 27 def symbols @symbols ||= map(&:to_sym) end