module Talkable::SharedGeneratorMethods

Public Instance Methods

erb?() click to toggle source
# File lib/talkable/generators/shared_generator_methods.rb, line 12
def erb?
  template_lang == 'erb'
end
template_lang() click to toggle source
# File lib/talkable/generators/shared_generator_methods.rb, line 2
def template_lang
  @template_lang ||= if options[:haml]
   'haml'
  elsif options[:slim]
   'slim'
  else
   Rails::Generators.options[:rails][:template_engine].to_s.downcase
  end
end