module Threshold::Standalone
Public Instance Methods
<=>(anOther)
click to toggle source
Comparable
# File lib/threshold/standalone.rb, line 41 def <=>(anOther) #gid <=> anOther.gid c = self.class.to_s <=> anOther.class.to_s if c == 0 then d = self.gid <=> anOther.gid if d == 0 then self.sid <=> anOther.sid else return d end else return c end end
==(an0ther)
click to toggle source
Equality Methods
# File lib/threshold/standalone.rb, line 18 def ==(an0ther) an0ther.class == self.class && an0ther.hash == hash end
Also aliased as: eql?
comment?(skip)
click to toggle source
Handle Comment Skipping
# File lib/threshold/standalone.rb, line 5 def comment?(skip) if skip return false else if defined?(@comment) return true else return false end end end
hash()
click to toggle source
# File lib/threshold/standalone.rb, line 24 def hash state.hash end
include?(an0ther)
click to toggle source
# File lib/threshold/standalone.rb, line 28 def include?(an0ther) return false unless an0ther.class == self.class state.zip(an0ther.state).each{ |item| if !(item[1].nil?) return false unless item[0] == item[1] end } return true end