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