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.
23 24 25 26 27 |
# File 'lib/albacore/nuget_model.rb', line 23 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.
22 23 24 |
# File 'lib/albacore/nuget_model.rb', line 22 def exclude @exclude end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
22 23 24 |
# File 'lib/albacore/nuget_model.rb', line 22 def src @src end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
22 23 24 |
# File 'lib/albacore/nuget_model.rb', line 22 def target @target end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/albacore/nuget_model.rb', line 28 def to_s "NugetModel::FileItem(src: #{@src}, target: #{@target}, exclude: #{@exclude}" end |