class Mime::Mimes

Attributes

symbols[R]

Public Class Methods

new() click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 11
def initialize
  @mimes = []
  @symbols = []
end

Public Instance Methods

<<(type) click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 20
def <<(type)
  @mimes << type
  @symbols << type.to_sym
end
delete_if() { |x| ... } click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 25
def delete_if
  @mimes.delete_if do |x|
    if yield x
      @symbols.delete(x.to_sym)
      true
    end
  end
end
each(&block) click to toggle source
# File lib/action_dispatch/http/mime_type.rb, line 16
def each(&block)
  @mimes.each(&block)
end