Sha256: 898b17295812a60d7642f7583b4ffcc5c25871ed7b3fd325f9c942ef6112a658
Contents?: true
Size: 491 Bytes
Versions: 67
Compression:
Stored size: 491 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
67 entries across 59 versions & 6 rubygems