Class: LicenseFinder::ManualPackage

Inherits:
Package
  • Object
show all
Defined in:
lib/license_finder/packages/manual_package.rb

Instance Attribute Summary

Attributes inherited from Package

#authors, #children, #description, #groups, #homepage, #install_path, #license_names_from_spec, #logger, #manual_approval, #name, #parents, #summary, #version

Instance Method Summary collapse

Methods inherited from Package

#<=>, #activations, #approved?, #approved_manually!, #approved_manually?, #blacklisted!, #blacklisted?, #decide_on_license, #initialize, #license_files, license_names_from_standard_spec, #licenses, #licensing, #missing?, #package_manager, #whitelisted!, #whitelisted?

Constructor Details

This class inherits a constructor from LicenseFinder::Package

Instance Method Details

#==(other) ⇒ Object



3
4
5
# File 'lib/license_finder/packages/manual_package.rb', line 3

def ==(other)
  eql? other
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/license_finder/packages/manual_package.rb', line 7

def eql?(other)
  name == other.name # && version.to_s == other.version.to_s # ignore version
end

#hashObject



11
12
13
# File 'lib/license_finder/packages/manual_package.rb', line 11

def hash
  name.hash # ^ version.to_s.hash # ignore version
end