Sha256: 281f57106c8c035e7d0ad8c50954fcde200d6c2c6dcdaa9664c1e2aa3228bafd

Contents?: true

Size: 491 Bytes

Versions: 71

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/named_base"

module Erb # :nodoc:
  module Generators # :nodoc:
    class Base < Rails::Generators::NamedBase # :nodoc:
      private
        def formats
          [format]
        end

        def format
          :html
        end

        def handler
          :erb
        end

        def filename_with_extensions(name, file_format = format)
          [name, file_format, handler].compact.join(".")
        end
    end
  end
end

Version data entries

71 entries across 68 versions & 6 rubygems

Version Path
railties-7.1.0 lib/rails/generators/erb.rb
railties-7.1.0.rc2 lib/rails/generators/erb.rb
railties-7.1.0.rc1 lib/rails/generators/erb.rb
railties-7.1.0.beta1 lib/rails/generators/erb.rb
railties-7.0.8 lib/rails/generators/erb.rb
railties-7.0.7.2 lib/rails/generators/erb.rb
railties-7.0.7.1 lib/rails/generators/erb.rb
railties-7.0.7 lib/rails/generators/erb.rb
railties-7.0.6 lib/rails/generators/erb.rb
railties-7.0.5.1 lib/rails/generators/erb.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/generators/erb.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-7.0.2.3/lib/rails/generators/erb.rb
railties-7.0.5 lib/rails/generators/erb.rb
railties-7.0.4.3 lib/rails/generators/erb.rb
railties-7.0.4.2 lib/rails/generators/erb.rb
railties-7.0.4.1 lib/rails/generators/erb.rb
railties-7.0.4 lib/rails/generators/erb.rb
railties-7.0.3.1 lib/rails/generators/erb.rb
railties-7.0.3 lib/rails/generators/erb.rb
railties-7.0.2.4 lib/rails/generators/erb.rb