Class: Yeqs::Generators::JqueryGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Yeqs::Generators::JqueryGenerator
- Defined in:
- lib/generators/yeqs/jquery/jquery_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/yeqs/jquery/jquery_generator.rb', line 4 def self.source_root @source_root ||= File.(File.join(File.dirname(__FILE__), '/../../../..')) end |
Instance Method Details
#install ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/generators/yeqs/jquery/jquery_generator.rb', line 8 def install if file_name.eql? 'core' directory "public/components/jquery", "public/components/jquery" else directory "public/components/jquery#{file_name}", "public/components/jquery#{file_name}" end end |