Methods

Included Modules

Attributes

[R] symbols

Class Public methods

new()

📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 11
    def initialize
      @mimes = []
      @symbols = []
    end
🔎 See on GitHub

Instance Public methods

<<(type)

📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 20
    def <<(type)
      @mimes << type
      @symbols << type.to_sym
    end
🔎 See on GitHub

delete_if()

📝 Source code
# File actionpack/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
🔎 See on GitHub

each(&block)

📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 16
    def each(&block)
      @mimes.each(&block)
    end
🔎 See on GitHub