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, #package_url, #parents, #summary, #version

Instance Method Summary collapse

Methods inherited from Package

#<=>, #activations, #approved?, #approved_manually!, #approved_manually?, #decide_on_license, #initialize, #license_files, license_names_from_standard_spec, #licenses, #licensing, #log_activation, #missing?, #notice_files, #package_manager, #permitted!, #permitted?, #restricted!, #restricted?

Constructor Details

This class inherits a constructor from LicenseFinder::Package

Instance Method Details

#==(other) ⇒ Object



5
6
7
# File 'lib/license_finder/packages/manual_package.rb', line 5

def ==(other)
  eql? other
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/license_finder/packages/manual_package.rb', line 9

def eql?(other)
  name == other.name
end

#hashObject



13
14
15
# File 'lib/license_finder/packages/manual_package.rb', line 13

def hash
  name.hash
end