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, #standard_id, #stripped_name, #unrecognized_matcher?

Constructor Details

#initialize(name) ⇒ OrLicense

Returns a new instance of OrLicense.



119
120
121
# File 'lib/license_finder/license.rb', line 119

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

Class Method Details

.operatorObject



115
116
117
# File 'lib/license_finder/license.rb', line 115

def self.operator
  ' OR '
end