Method: Gruf::Interceptors::Registry#count

Defined in:
lib/gruf/interceptors/registry.rb

#countInteger

Returns The number of interceptors currently loaded.

Returns:

  • (Integer)

    The number of interceptors currently loaded



135
136
137
138
139
140
# File 'lib/gruf/interceptors/registry.rb', line 135

def count
  interceptors_mutex do
    @registry ||= []
    @registry.count
  end
end