Class: Albacore::NugetModel::FileItem
- Inherits:
-
Object
- Object
- Albacore::NugetModel::FileItem
- Defined in:
- lib/albacore/nuget_model.rb
Instance Attribute Summary collapse
-
#exclude ⇒ Object
readonly
Returns the value of attribute exclude.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(src, target, excl) ⇒ FileItem
constructor
A new instance of FileItem.
- #to_s ⇒ Object
Constructor Details
#initialize(src, target, excl) ⇒ FileItem
Returns a new instance of FileItem.
22 23 24 25 26 |
# File 'lib/albacore/nuget_model.rb', line 22 def initialize src, target, excl src, target = Albacore::Paths.normalise_slashes(src), Albacore::Paths.normalise_slashes(target) @src, @target, @exclude = src, target, excl end |
Instance Attribute Details
#exclude ⇒ Object (readonly)
Returns the value of attribute exclude.
21 22 23 |
# File 'lib/albacore/nuget_model.rb', line 21 def exclude @exclude end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
21 22 23 |
# File 'lib/albacore/nuget_model.rb', line 21 def src @src end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
21 22 23 |
# File 'lib/albacore/nuget_model.rb', line 21 def target @target end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/albacore/nuget_model.rb', line 27 def to_s "NugetModel::FileItem(src: #{@src}, target: #{@target}, exclude: #{@exclude}" end |