Class: Cardio::Generators::ModBase
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Cardio::Generators::ModBase
- Extended by:
- ClassMethods
- Defined in:
- lib/cardio/generators/mod_base.rb
Overview
base class for mod-related generators
Direct Known Subclasses
Instance Method Summary collapse
Methods included from ClassMethods
banner, banner_command, namespace, source_root
Instance Method Details
#mod_path ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/cardio/generators/mod_base.rb', line 11 def mod_path @mod_path = if (path = ["mod-path"]) File. path else File.join "mod", file_name end end |