Class: ReferenceTracking::References

Inherits:
Array
  • Object
show all
Defined in:
lib/reference_tracking/references.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, methods) ⇒ References

Returns a new instance of References.



3
4
5
# File 'lib/reference_tracking/references.rb', line 3

def initialize(object, methods)
  Tracker.setup(object, self, methods)
end

Instance Method Details

#tagsObject



7
8
9
# File 'lib/reference_tracking/references.rb', line 7

def tags
  uniq.map { |object, method| ReferenceTracking.to_tag(object, method) }
end