Class: Nsweb::Generators::Base

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/nsweb.rb

Overview

:nodoc:

Direct Known Subclasses

NamedBase, PluginGenerator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#plugin_nameObject

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



16
17
18
# File 'lib/generators/nsweb.rb', line 16

def self.banner
  "#{$0} generate nsweb:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end

.source_rootObject



12
13
14
# File 'lib/generators/nsweb.rb', line 12

def self.source_root
  @nsweb_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'nsweb', generator_name, 'templates'))
end