Class: BigBench::Tracker::Tracker
- Inherits:
-
Object
- Object
- BigBench::Tracker::Tracker
- Defined in:
- lib/bigbench/tracker.rb
Instance Attribute Summary collapse
-
#trackings ⇒ Object
Returns the value of attribute trackings.
Instance Method Summary collapse
-
#initialize ⇒ Tracker
constructor
A new instance of Tracker.
- #track(object) ⇒ Object
Constructor Details
#initialize ⇒ Tracker
Returns a new instance of Tracker.
16 17 18 |
# File 'lib/bigbench/tracker.rb', line 16 def initialize @trackings = [] end |
Instance Attribute Details
#trackings ⇒ Object
Returns the value of attribute trackings.
14 15 16 |
# File 'lib/bigbench/tracker.rb', line 14 def trackings @trackings end |
Instance Method Details
#track(object) ⇒ Object
20 21 22 |
# File 'lib/bigbench/tracker.rb', line 20 def track object @trackings << object end |