Class: Sheap::Diff
Instance Attribute Summary collapse
-
#after ⇒ Object
readonly
Returns the value of attribute after.
-
#before ⇒ Object
readonly
Returns the value of attribute before.
-
#later ⇒ Object
readonly
Returns the value of attribute later.
Instance Method Summary collapse
- #filter(&block) ⇒ Object
-
#initialize(before, after, later = nil) ⇒ Diff
constructor
A new instance of Diff.
- #inspect ⇒ Object
- #retained ⇒ Object (also: #objects)
Methods included from Collection
#arrays, #bignums, #callcaches, #callinfos, #class_named, #classes, #complexes, #constcaches, #crefs, #datas, #files, #floats, #hashes, #icasses, #imemos, #instances_of, #iseqs, #matches, #ments, #modules, #of_imemo_type, #of_type, #plain_objects, #rationals, #regexps, #strings, #structs, #symbols
Constructor Details
Instance Attribute Details
#after ⇒ Object (readonly)
Returns the value of attribute after.
80 81 82 |
# File 'lib/sheap.rb', line 80 def after @after end |
#before ⇒ Object (readonly)
Returns the value of attribute before.
80 81 82 |
# File 'lib/sheap.rb', line 80 def before @before end |
#later ⇒ Object (readonly)
Returns the value of attribute later.
80 81 82 |
# File 'lib/sheap.rb', line 80 def later @later end |
Instance Method Details
#filter(&block) ⇒ Object
92 93 94 |
# File 'lib/sheap.rb', line 92 def filter(&block) retained.filter(&block) end |
#inspect ⇒ Object
96 97 98 |
# File 'lib/sheap.rb', line 96 def inspect "#<#{self.class} (#{objects.size} objects)>" end |
#retained ⇒ Object Also known as: objects
87 88 89 |
# File 'lib/sheap.rb', line 87 def retained @retained ||= HeapObjectCollection.new(calculate_retained, @after) end |