Class: MongoMapper::Plugins::Versioned::Version
- Inherits:
-
Object
- Object
- MongoMapper::Plugins::Versioned::Version
- Includes:
- Comparable, Document
- Defined in:
- lib/mongo_mapper/plugins/models/version.rb
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
——————————————————————— allow comparison.
Instance Method Details
#<=>(other) ⇒ Object
allow comparison
40 41 42 |
# File 'lib/mongo_mapper/plugins/models/version.rb', line 40 def <=>(other) version_number <=> other.version_number end |