Class: LicenseFinder::Activation::FromFiles

Inherits:
Basic
  • Object
show all
Defined in:
lib/license_finder/package_utils/activation.rb

Instance Attribute Summary collapse

Attributes inherited from Basic

#license, #package

Instance Method Summary collapse

Constructor Details

#initialize(package, license, files) ⇒ FromFiles

Returns a new instance of FromFiles.



22
23
24
25
# File 'lib/license_finder/package_utils/activation.rb', line 22

def initialize(package, license, files)
  super(package, license)
  @files = files
end

Instance Attribute Details

#filesObject (readonly)

Returns the value of attribute files.



27
28
29
# File 'lib/license_finder/package_utils/activation.rb', line 27

def files
  @files
end

Instance Method Details

#sourcesObject



29
30
31
# File 'lib/license_finder/package_utils/activation.rb', line 29

def sources
  files.map { |file| "from file '#{file.path}'" }
end