mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2149c313f4
commit
eaad7bedc9
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ module Rinda
|
||||||
##
|
##
|
||||||
# Set to false to shutdown future requests using this Renewer
|
# Set to false to shutdown future requests using this Renewer
|
||||||
|
|
||||||
attr_accessor :renew
|
attr_writer :renew
|
||||||
|
|
||||||
def initialize # :nodoc:
|
def initialize # :nodoc:
|
||||||
@renew = true
|
@renew = true
|
||||||
|
|
|
@ -50,7 +50,7 @@ class MockClock
|
||||||
end
|
end
|
||||||
|
|
||||||
def rewind
|
def rewind
|
||||||
now ,= @ts.take([nil, :now])
|
@ts.take([nil, :now])
|
||||||
@ts.write([@inf, :now])
|
@ts.write([@inf, :now])
|
||||||
@ts.take([nil, :now])
|
@ts.take([nil, :now])
|
||||||
@now = 2
|
@now = 2
|
||||||
|
@ -76,7 +76,7 @@ module Time
|
||||||
module_function :at
|
module_function :at
|
||||||
|
|
||||||
def now
|
def now
|
||||||
@m ? @m.now : 2
|
defined?(@m) && @m ? @m.now : 2
|
||||||
end
|
end
|
||||||
module_function :now
|
module_function :now
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue