Class: Pubid::Bsi::Identifiers::Set
- Inherits:
-
SingleIdentifier
- Object
- SingleIdentifier
- Pubid::Bsi::Identifiers::Set
- Defined in:
- lib/pubid/bsi/identifiers/set.rb
Overview
Set represents multiple standards published as a set Format: identifier + identifier [+ identifier ...] Each identifier is separated by " + " (space, plus, space)
Examples:
BS ISO 20400 + BS ISO 44001+BS ISO 44002
BS ISO 9001+BS ISO 14001
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/pubid/bsi/identifiers/set.rb', line 20 def <=>(other) return nil unless other.is_a?(Set) # Compare first identifier identifiers.first <=> other.identifiers.first end |