Class: DirCopy
- Inherits:
-
Object
- Object
- DirCopy
- Defined in:
- lib/DirCopy.rb
Instance Attribute Summary collapse
-
#cpdata ⇒ Object
readonly
Returns the value of attribute cpdata.
Instance Method Summary collapse
- #cp ⇒ Object
-
#initialize(d) ⇒ DirCopy
constructor
A new instance of DirCopy.
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
#cpdata ⇒ Object (readonly)
Returns the value of attribute cpdata.
5 6 7 |
# File 'lib/DirCopy.rb', line 5 def cpdata @cpdata end |
Instance Method Details
#cp ⇒ Object
11 12 13 |
# File 'lib/DirCopy.rb', line 11 def cp b_copy(@cpdata.from,@cpdata.to) end |