Class: Taro::Rails::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Taro::Rails::Generators::InstallGenerator
- Defined in:
- lib/taro/rails/generators/install_generator.rb
Instance Method Summary collapse
-
#create_type_files ⇒ Object
:nocov:.
Instance Method Details
#create_type_files ⇒ Object
:nocov:
12 13 14 15 16 17 |
# File 'lib/taro/rails/generators/install_generator.rb', line 12 def create_type_files Dir["#{self.class.source_root}/**/*.erb"].each do |tmpl| dest_dir = [:dir].chomp('/') template tmpl, "#{dest_dir}/#{File.basename(tmpl).sub('erb', 'rb')}" end end |