method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: RawFile
new(filename) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/template/raw_file.rb, line 9
      def initialize(filename)
        @filename = filename.to_s
        extname = ::File.extname(filename).delete(".")
        @type = Template::Types[extname] || Template::Types[:text]
        @format = @type.symbol
      end
Register or log in to add new notes.