Class: Merb::Generators::MerbPluginGenerator
- Inherits:
-
NamedGenerator
- Object
- Templater::Generator
- Generator
- NamedGenerator
- Merb::Generators::MerbPluginGenerator
- Defined in:
- lib/generators/merb_plugin.rb
Class Method Summary collapse
Instance Method Summary collapse
- #destination_root ⇒ Object
-
#initialize(*args) ⇒ MerbPluginGenerator
constructor
A new instance of MerbPluginGenerator.
Methods inherited from NamedGenerator
#class_name, #file_name, #symbol_name, #test_class_name
Methods inherited from Generator
Methods included from ColorfulMessages
Constructor Details
#initialize(*args) ⇒ MerbPluginGenerator
Returns a new instance of MerbPluginGenerator.
5 6 7 8 |
# File 'lib/generators/merb_plugin.rb', line 5 def initialize(*args) Merb.disable(:initfile) super end |
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/generators/merb_plugin.rb', line 10 def self.source_root File.join(super, 'application', 'merb_plugin') end |
Instance Method Details
#destination_root ⇒ Object
26 27 28 |
# File 'lib/generators/merb_plugin.rb', line 26 def destination_root File.join(@destination_root, base_name) end |