Class: Nsweb::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Nsweb::Generators::Base
- Defined in:
- lib/generators/nsweb.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
Class Method Summary collapse
Instance Attribute Details
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
7 8 9 |
# File 'lib/generators/nsweb.rb', line 7 def plugin_name @plugin_name end |
Class Method Details
.banner ⇒ Object
16 17 18 |
# File 'lib/generators/nsweb.rb', line 16 def self. "#{$0} generate nsweb:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]" end |
.source_root ⇒ Object
12 13 14 |
# File 'lib/generators/nsweb.rb', line 12 def self.source_root @nsweb_source_root ||= File.(File.join(File.dirname(__FILE__), 'nsweb', generator_name, 'templates')) end |