Sha256: 3e147df8f8864389365721716209202d3c3f45e312db6ac701998b3bc9205147

Contents?: true

Size: 490 Bytes

Versions: 59

Compression:

Stored size: 490 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

59 entries across 59 versions & 4 rubygems

Version Path
railties-6.1.7.10 lib/rails/generators/erb.rb
railties-6.1.7.9 lib/rails/generators/erb.rb
railties-6.1.7.8 lib/rails/generators/erb.rb
railties-6.1.7.7 lib/rails/generators/erb.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/erb.rb
railties-6.1.7.6 lib/rails/generators/erb.rb
railties-6.1.7.5 lib/rails/generators/erb.rb
railties-6.1.7.4 lib/rails/generators/erb.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/generators/erb.rb
railties-6.1.7.3 lib/rails/generators/erb.rb
railties-6.1.7.2 lib/rails/generators/erb.rb
railties-6.1.7.1 lib/rails/generators/erb.rb
railties-6.0.6.1 lib/rails/generators/erb.rb
railties-6.1.7 lib/rails/generators/erb.rb
railties-6.0.6 lib/rails/generators/erb.rb
railties-6.1.6.1 lib/rails/generators/erb.rb
railties-6.0.5.1 lib/rails/generators/erb.rb
railties-6.0.5 lib/rails/generators/erb.rb
railties-6.1.6 lib/rails/generators/erb.rb
railties-6.1.5.1 lib/rails/generators/erb.rb