Module: Jax::Generators::Usage

Included in:
Command
Defined in:
lib/jax/generators/commands.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



38
39
40
41
# File 'lib/jax/generators/commands.rb', line 38

def extended(base)
  base.send :extend, ClassMethods
  base.base_path = File.dirname(caller.first.gsub(/:.*$/, ''))
end

.included(base) ⇒ Object



43
44
45
46
# File 'lib/jax/generators/commands.rb', line 43

def included(base)
  base.send :extend, ClassMethods
  base.base_path = File.dirname(caller.first.gsub(/:.*$/, ''))
end