Module: Enumerable

Defined in:
lib/arachni/ruby/enumerable.rb

Overview

Adds #realsize.

Author:

Instance Method Summary collapse

Instance Method Details

#realsizeInteger

Returns #realsize of self + sum of all #realsizes of all entries in the collection.

Returns:

  • (Integer)

    #realsize of self + sum of all #realsizes of all entries in the collection



25
26
27
# File 'lib/arachni/ruby/enumerable.rb', line 25

def realsize
    reduce( super( false ) ) { |s, e| s += e.realsize }
end