class AspenFile
Attributes
direc[R]
file[R]
templ[R]
Public Class Methods
all()
click to toggle source
# File lib/aspen_file.rb, line 9 def self.all @@all end
new(templ, direc, file)
click to toggle source
# File lib/aspen_file.rb, line 13 def initialize(templ, direc, file) @templ = templ if direc.length != 0 @direc = direc + "/" else @direc = "" end @file = file @@all << self end
Public Instance Methods
create(root)
click to toggle source
# File lib/aspen_file.rb, line 24 def create(root) FileUtils.cp("#{self.templ}/#{self.file[0]}", "#{root}/#{self.direc}#{self.file[0]}") puts " create #{self.direc}#{self.file[0]}" end