Sha256: 281f57106c8c035e7d0ad8c50954fcde200d6c2c6dcdaa9664c1e2aa3228bafd
Contents?: true
Size: 491 Bytes
Versions: 71
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
71 entries across 68 versions & 6 rubygems