class Haml::Generators::Base
Public Class Methods
source_root()
click to toggle source
Automatically sets the source root based on the class name.
# File lib/rails/generators/haml/base.rb, line 8 def self.source_root @_haml_source_root ||= begin File.expand_path(File.join(File.dirname(__FILE__), generator_name, 'templates')) if generator_name end end