1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/generators/erb.rb
Rafael Mendonça França 18707ab17f
Standardize nodoc comments
2021-07-29 21:18:07 +00:00

26 lines
491 B
Ruby

# 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