Skip to content

Commit

Permalink
Add Clock.infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Altintop committed Jun 21, 2011
1 parent c226bed commit 51e4480
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/master_slave_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def to_s
def self.zero
@zero ||= Clock.new('', 0)
end

def self.infinity
@infinity ||= Clock.new('', Float::MAX.to_i)
end
end

checkout :active?
Expand Down

0 comments on commit 51e4480

Please sign in to comment.