Class: Neutron::FilePair
- Inherits:
-
Object
- Object
- Neutron::FilePair
- Defined in:
- lib/neutron.rb
Overview
File pair
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
- #expand ⇒ Object
-
#initialize(source, target) ⇒ FilePair
constructor
A new instance of FilePair.
Constructor Details
#initialize(source, target) ⇒ FilePair
Returns a new instance of FilePair.
131 132 133 134 |
# File 'lib/neutron.rb', line 131 def initialize(source, target) @target = target @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
130 131 132 |
# File 'lib/neutron.rb', line 130 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
130 131 132 |
# File 'lib/neutron.rb', line 130 def target @target end |
Instance Method Details
#expand ⇒ Object
135 136 137 138 139 |
# File 'lib/neutron.rb', line 135 def @target = File.(@target) @source = File.(@source) self end |