Module: DMGen::PluginGenerator::ClassMethods

Defined in:
lib/dm-gen/generators/plugin_generator.rb

Instance Method Summary collapse

Instance Method Details

#source_rootObject



39
40
41
# File 'lib/dm-gen/generators/plugin_generator.rb', line 39

def source_root
  File.join(File.dirname(__FILE__), '..', 'templates', template_dir)
end

#template_dirObject



35
36
37
# File 'lib/dm-gen/generators/plugin_generator.rb', line 35

def template_dir
  name.snake_case.split('::').last
end