Class: EPUB::Metadata::Title

Inherits:
DCMES
  • Object
show all
Includes:
Comparable
Defined in:
lib/epub/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

[View source]

138
139
140
141
142
# File 'lib/epub/metadata.rb', line 138

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