class ActionDispatch::ContentSecurityPolicy

def apply_mappings(sources)

Experimental RBS support (using type sampling data from the type_fusion project).

def apply_mappings: (Array[Symbol] sources) -> Array[String]

This signature was generated using 1 sample from 1 application.

def apply_mappings(sources)
  sources.map do |source|
    case source
    when Symbol
      apply_mapping(source)
    when String, Proc
      source
    else
      raise ArgumentError, "Invalid content security policy source: #{source.inspect}"
    end
  end
end