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.0.4 lib/rails/generators/erb.rb
railties-6.0.3.7 lib/rails/generators/erb.rb
railties-6.1.3.2 lib/rails/generators/erb.rb
railties-6.1.3.1 lib/rails/generators/erb.rb
railties-6.0.3.6 lib/rails/generators/erb.rb
railties-6.1.3 lib/rails/generators/erb.rb
railties-6.1.2.1 lib/rails/generators/erb.rb
railties-6.0.3.5 lib/rails/generators/erb.rb
railties-6.1.2 lib/rails/generators/erb.rb
railties-6.1.1 lib/rails/generators/erb.rb
railties-6.1.0 lib/rails/generators/erb.rb
railties-6.1.0.rc2 lib/rails/generators/erb.rb
railties-6.1.0.rc1 lib/rails/generators/erb.rb
railties-6.0.3.4 lib/rails/generators/erb.rb
railties-6.0.3.3 lib/rails/generators/erb.rb
railties-6.0.3.2 lib/rails/generators/erb.rb
railties-6.0.3.1 lib/rails/generators/erb.rb
railties-6.0.3 lib/rails/generators/erb.rb
railties-6.0.3.rc1 lib/rails/generators/erb.rb