Class: DirCopy

Inherits:
Object
  • Object
show all
Defined in:
lib/DirCopy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(d) ⇒ DirCopy

Returns a new instance of DirCopy.



7
8
9
# File 'lib/DirCopy.rb', line 7

def initialize(d)
	@cpdata = d
end

Instance Attribute Details

#cpdataObject (readonly)

Returns the value of attribute cpdata.



5
6
7
# File 'lib/DirCopy.rb', line 5

def cpdata
  @cpdata
end

Instance Method Details

#cpObject



11
12
13
# File 'lib/DirCopy.rb', line 11

def cp
	b_copy(@cpdata.from,@cpdata.to)
end