Class: Cardio::Generators::ModBase

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

Overview

base class for mod-related generators

Direct Known Subclasses

ModGenerator, SetGenerator

Instance Method Summary collapse

Methods included from ClassMethods

banner, banner_command, namespace, source_root

Instance Method Details

#mod_pathObject



11
12
13
14
15
16
17
# File 'card/lib/cardio/generators/mod_base.rb', line 11

def mod_path
  @mod_path = if (path = options["mod-path"])
                File.expand_path path
              else
                File.join "mod", file_name
              end
end