Class: Jax::Generators::Command
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Jax::Generators::Command
show all
- Includes:
- Usage, Thor::Actions
- Defined in:
- lib/jax/generators/commands.rb
Class Method Summary
collapse
Methods included from Usage
extended, included
Class Method Details
.inherited(base) ⇒ Object
60
61
62
63
64
65
66
67
|
# File 'lib/jax/generators/commands.rb', line 60
def self.inherited(base)
base.base_path = File.dirname(caller.first.gsub(/:.*$/, ''))
base.instance_eval do
def self.source_root
File.join(base_path, "templates")
end
end
end
|