Class: EPUB::Publication::Package::Metadata::Title

Inherits:
DCMES
  • Object
show all
Includes:
Comparable
Defined in:
lib/epub/publication/package/metadata.rb

Constant Summary

Constants included from Refinee

Refinee::PROPERTIES

Instance Attribute Summary

Attributes inherited from DCMES

#content, #dir, #id, #lang

Attributes included from Refinee

#refiners

Instance Method Summary collapse

Methods inherited from DCMES

#to_s

Instance Method Details

#<=>(other) ⇒ Object



121
122
123
124
125
# File 'lib/epub/publication/package/metadata.rb', line 121

def <=>(other)
  return 1 if other.display_seq.nil?
  return -1 if display_seq.nil?
  display_seq.to_s.to_i <=> other.display_seq.to_s.to_i
end