Module: Talkable::SharedGeneratorMethods
- Defined in:
- lib/talkable/generators/shared_generator_methods.rb
Instance Method Summary collapse
Instance Method Details
#erb? ⇒ Boolean
12 13 14 |
# File 'lib/talkable/generators/shared_generator_methods.rb', line 12 def erb? template_lang == 'erb' end |
#template_lang ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/talkable/generators/shared_generator_methods.rb', line 2 def template_lang @template_lang ||= if [:haml] 'haml' elsif [:slim] 'slim' else Rails::Generators.[:rails][:template_engine].to_s.downcase end end |