class Object
@see Kernel
Constants
- Cql
Public Class Methods
method_added(name)
click to toggle source
Detect method additions to Object
and remove them in the BlankSlate
class.
# File lib/blankslate.rb, line 74 def method_added(name) result = blank_slate_method_added(name) return result if self != Object BlankSlate.hide(name) result end
Also aliased as: blank_slate_method_added
Public Instance Methods
current_connection()
click to toggle source
# File lib/cql-rb_extensions.rb, line 31 def current_connection async.instance_variable_get(:@connection_manager).current_connection end
random_connection()
click to toggle source
# File lib/cql-rb_extensions.rb, line 14 def random_connection fail ::Cql::NotConnectedError unless connected? @lock.synchronize do @count ||= 0 @count += 1 if @count > 500 @count = 0 @current_connection = nil end @current_connection ||= @connections.sample end end