Class: ObjCGenerator::FileCopier

Inherits:
Object
  • Object
show all
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_pathObject



4
5
6
# File 'lib/ObjCGenerator/file_copier.rb', line 4

def template_path
  File.join(File.expand_path("../..", File.dirname(__FILE__)), "templates")
end