class Cassandra::Comparable

Abstract base class for comparable numeric column name types

Public Instance Methods

<=>(other) click to toggle source
   # File lib/cassandra/comparable.rb
 8 def <=>(other)
 9   self.to_i <=> other.to_i
10 end
==(other) click to toggle source
   # File lib/cassandra/comparable.rb
20 def ==(other)
21   other.respond_to?(:to_i) && self.to_i == other.to_i
22 end
eql?(other) click to toggle source
   # File lib/cassandra/comparable.rb
16 def eql?(other)
17   other.is_a?(Comparable) and @bytes == other.to_s
18 end
hash() click to toggle source
   # File lib/cassandra/comparable.rb
12 def hash
13   @bytes.hash
14 end
to_s() click to toggle source
   # File lib/cassandra/comparable.rb
24 def to_s
25   @bytes
26 end