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
|
||||
|
||||
attr_accessor :renew
|
||||
attr_writer :renew
|
||||
|
||||
def initialize # :nodoc:
|
||||
@renew = true
|
||||
|
|
|
@ -50,7 +50,7 @@ class MockClock
|
|||
end
|
||||
|
||||
def rewind
|
||||
now ,= @ts.take([nil, :now])
|
||||
@ts.take([nil, :now])
|
||||
@ts.write([@inf, :now])
|
||||
@ts.take([nil, :now])
|
||||
@now = 2
|
||||
|
@ -76,7 +76,7 @@ module Time
|
|||
module_function :at
|
||||
|
||||
def now
|
||||
@m ? @m.now : 2
|
||||
defined?(@m) && @m ? @m.now : 2
|
||||
end
|
||||
module_function :now
|
||||
|
||||
|
|
Loading…
Reference in a new issue