Methods

Included Modules

Class Public methods

new()

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

Instance Public methods

<<(type)

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

delete_if()

📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 24
    def delete_if
      @mimes.delete_if { |x| yield x }.tap { @symbols = nil }
    end
🔎 See on GitHub

each()

📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 15
    def each
      @mimes.each { |x| yield x }
    end
🔎 See on GitHub

symbols()

📝 Source code
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 28
    def symbols
      @symbols ||= map(&:to_sym)
    end
🔎 See on GitHub