Class: Card::Generators::NamedBase

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Extended by:
ClassMethods
Defined in:
lib/generators/card.rb

Instance Method Summary collapse

Methods included from ClassMethods

banner, source_root

Instance Method Details

#mod_pathObject



31
32
33
34
35
36
37
# File 'lib/generators/card.rb', line 31

def mod_path
  @mod_path ||= begin
    path_parts = ["mod", file_name]
    path_parts.unshift Cardio.gem_root if options.core?
    File.join(*path_parts)
  end
end