Class: Albacore::NugetModel::FileItem

Inherits:
Object
  • Object
show all
Defined in:
lib/albacore/nuget_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#excludeObject (readonly)

Returns the value of attribute exclude.



22
23
24
# File 'lib/albacore/nuget_model.rb', line 22

def exclude
  @exclude
end

#srcObject (readonly)

Returns the value of attribute src.



22
23
24
# File 'lib/albacore/nuget_model.rb', line 22

def src
  @src
end

#targetObject (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_sObject



28
29
30
# File 'lib/albacore/nuget_model.rb', line 28

def to_s
  "NugetModel::FileItem(src: #{@src}, target: #{@target}, exclude: #{@exclude}"
end