Class: ObjCGenerator::FileCopier
- Inherits:
-
Object
- Object
- ObjCGenerator::FileCopier
- Defined in:
- lib/ObjCGenerator/file_copier.rb
Instance Method Summary collapse
Instance Method Details
#copy_categories(dest) ⇒ Object
9 10 11 |
# File 'lib/ObjCGenerator/file_copier.rb', line 9 def copy_categories(dest) FileUtils.cp_r( Dir.glob(template_path + '/**/*.{h,m}'), dest) end |
#template_path ⇒ Object
4 5 6 |
# File 'lib/ObjCGenerator/file_copier.rb', line 4 def template_path File.join(File.("../..", File.dirname(__FILE__)), "templates") end |