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.8 lib/rails/generators/erb.rb
railties-6.1.5 lib/rails/generators/erb.rb
railties-6.1.4.7 lib/rails/generators/erb.rb
railties-6.0.4.7 lib/rails/generators/erb.rb
railties-6.1.4.6 lib/rails/generators/erb.rb
railties-6.0.4.6 lib/rails/generators/erb.rb
railties-6.0.4.5 lib/rails/generators/erb.rb
railties-6.1.4.5 lib/rails/generators/erb.rb
railties-6.1.4.4 lib/rails/generators/erb.rb
railties-6.0.4.4 lib/rails/generators/erb.rb
railties-6.1.4.3 lib/rails/generators/erb.rb
railties-6.0.4.3 lib/rails/generators/erb.rb
railties-6.0.4.2 lib/rails/generators/erb.rb
railties-6.1.4.2 lib/rails/generators/erb.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.1/lib/rails/generators/erb.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.1/lib/rails/generators/erb.rb
railties-6.1.4.1 lib/rails/generators/erb.rb
railties-6.0.4.1 lib/rails/generators/erb.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/railties-6.1.4/lib/rails/generators/erb.rb
railties-6.1.4 lib/rails/generators/erb.rb