Class: LicenseFinder::Activation::FromFiles
- Defined in:
- lib/license_finder/package_utils/activation.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
Attributes inherited from Basic
Instance Method Summary collapse
-
#initialize(package, license, files) ⇒ FromFiles
constructor
A new instance of FromFiles.
- #sources ⇒ Object
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
#files ⇒ Object (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
#sources ⇒ Object
29 30 31 |
# File 'lib/license_finder/package_utils/activation.rb', line 29 def sources files.map { |file| "from file '#{file.path}'" } end |