Class: LicenseFinder::OrLicense

Inherits:
AndLicense show all
Defined in:
lib/license_finder/license.rb

Instance Attribute Summary

Attributes inherited from AndLicense

#sub_licenses

Attributes inherited from License

#url

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from License

all, #eql?, find_by_name, find_by_text, #hash, #matches_name?, #matches_text?, #name, #stripped_name, #unrecognized_matcher?

Constructor Details

#initialize(name) ⇒ OrLicense

Returns a new instance of OrLicense.



113
114
115
# File 'lib/license_finder/license.rb', line 113

def initialize(name)
  super(name, OrLicense.operator)
end

Class Method Details

.operatorObject



109
110
111
# File 'lib/license_finder/license.rb', line 109

def self.operator
  ' OR '
end