Class: Haml::Generators::Base
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Haml::Generators::Base
- Defined in:
- lib/generators/haml_rails/templates/base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.source_root ⇒ Object
Automatically sets the source root based on the class name.
Class Method Details
.source_root ⇒ Object
Automatically sets the source root based on the class name.
8 9 10 11 12 |
# File 'lib/generators/haml_rails/templates/base.rb', line 8 def self.source_root @_haml_source_root ||= begin File.(File.join(File.dirname(__FILE__), generator_name, 'templates')) if generator_name end end |