Class: Xmvc::Generator::Scaffold

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/xmvc/generators/scaffold.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



6
7
8
# File 'lib/xmvc/generators/scaffold.rb', line 6

def self.source_root 
  File.join(Xmvc::TEMPLATE_PATH)
end

Instance Method Details

#generate(name, *fields) ⇒ Object



11
12
13
14
# File 'lib/xmvc/generators/scaffold.rb', line 11

def generate(name, *fields)
  @name = name
  @fields = fields
end