class TitleistGenerator
typed: strict Generate initial files for the gem to work.
Public Instance Methods
copy_locale()
click to toggle source
@return [nil]
# File lib/generators/titleist/titleist_generator.rb, line 7 def copy_locale template 'locale.yml.erb', 'config/locales/titleist.en.yml' end
update_default_application_layout()
click to toggle source
@return [nil]
# File lib/generators/titleist/titleist_generator.rb, line 12 def update_default_application_layout gsub_file( 'app/views/layouts/application.html.erb', %r{\s\s\s\s<title>(.*)</title>}, ' <%= title_tag %>' ) end