Skip to content

Commit

Permalink
#method_missing can be private as well
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Apr 20, 2011
1 parent f3facf8 commit 90d443c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/em-hiredis/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def monitor(&blk)
method_missing(:monitor, &blk)
end

private

def method_missing(sym, *args)
deferred = EM::DefaultDeferrable.new
# Shortcut for defining the callback case with just a block
Expand All @@ -133,8 +135,6 @@ def method_missing(sym, *args)
deferred
end

private

def reconnect
EventMachine::Hiredis.logger.debug("Trying to reconnect to Redis")
@connection.reconnect @host, @port
Expand Down

0 comments on commit 90d443c

Please sign in to comment.