Class: Card::Generators::NamedBase
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Card::Generators::NamedBase
- Extended by:
- ClassMethods
- Defined in:
- lib/generators/card.rb
Direct Known Subclasses
FormatGenerator, ModGenerator, SetGenerator, TemplateGenerator
Instance Method Summary collapse
Methods included from ClassMethods
Instance Method Details
#mod_path ⇒ Object
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 .core? File.join(*path_parts) end end |