Class: Releasinator::CopyFile
- Inherits:
-
Object
- Object
- Releasinator::CopyFile
- Defined in:
- lib/copy_file.rb
Instance Attribute Summary collapse
-
#source_file ⇒ Object
readonly
Returns the value of attribute source_file.
-
#target_dir ⇒ Object
readonly
Returns the value of attribute target_dir.
-
#target_name ⇒ Object
readonly
Returns the value of attribute target_name.
Instance Method Summary collapse
-
#initialize(source_file, target_name, target_dir) ⇒ CopyFile
constructor
A new instance of CopyFile.
Constructor Details
#initialize(source_file, target_name, target_dir) ⇒ CopyFile
Returns a new instance of CopyFile.
4 5 6 7 8 |
# File 'lib/copy_file.rb', line 4 def initialize(source_file, target_name, target_dir) @source_file = source_file @target_name = target_name @target_dir = target_dir end |
Instance Attribute Details
#source_file ⇒ Object (readonly)
Returns the value of attribute source_file.
3 4 5 |
# File 'lib/copy_file.rb', line 3 def source_file @source_file end |
#target_dir ⇒ Object (readonly)
Returns the value of attribute target_dir.
3 4 5 |
# File 'lib/copy_file.rb', line 3 def target_dir @target_dir end |
#target_name ⇒ Object (readonly)
Returns the value of attribute target_name.
3 4 5 |
# File 'lib/copy_file.rb', line 3 def target_name @target_name end |