Class: DMGen::Adapter

Inherits:
Templater::Generator
  • Object
show all
Includes:
PluginGenerator
Defined in:
lib/dm-gen/generators/adapter.rb

Instance Method Summary collapse

Methods included from PluginGenerator

#destination_root, included, #snake_name

Instance Method Details

#class_nameObject



20
21
22
# File 'lib/dm-gen/generators/adapter.rb', line 20

def class_name
  "#{name.camel_case}Adapter"
end

#gem_nameObject



16
17
18
# File 'lib/dm-gen/generators/adapter.rb', line 16

def gem_name
  "dm-#{snake_name}-adapter"
end