Class: Humpyard::Generators::Base

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

Overview

:nodoc:

Class Method Summary collapse

Class Method Details



13
14
15
# File 'lib/generators/humpyard.rb', line 13

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

.source_rootObject



9
10
11
# File 'lib/generators/humpyard.rb', line 9

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