Class: Glass::Generators::Base
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Glass::Generators::Base
- Defined in:
- lib/generators/glass.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.banner ⇒ Object
10 11 12 |
# File 'lib/generators/glass.rb', line 10 def self. "rails generate glass:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]" end |
.source_root ⇒ Object
6 7 8 |
# File 'lib/generators/glass.rb', line 6 def self.source_root @_glass_source_root ||= File.(File.join(File.dirname(__FILE__), 'glass', generator_name, 'templates')) end |