Class: Merb::Generators::FullSliceGenerator
- Inherits:
-
BaseSliceGenerator
- Object
- NamedGenerator
- BaseSliceGenerator
- Merb::Generators::FullSliceGenerator
- Defined in:
- lib/generators/full.rb
Class Method Summary collapse
Instance Method Summary collapse
- #destination_root ⇒ Object
-
#initialize(*args) ⇒ FullSliceGenerator
constructor
A new instance of FullSliceGenerator.
Methods inherited from BaseSliceGenerator
Constructor Details
#initialize(*args) ⇒ FullSliceGenerator
Returns a new instance of FullSliceGenerator.
5 6 7 8 |
# File 'lib/generators/full.rb', line 5 def initialize(*args) Merb.disable(:initfile) super end |
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/generators/full.rb', line 10 def self.source_root File.join(File.dirname(__FILE__), 'templates', 'full') end |
Instance Method Details
#destination_root ⇒ Object
30 31 32 |
# File 'lib/generators/full.rb', line 30 def destination_root File.join(@destination_root, base_name) end |