Class: DtraceAggregateSet
- Inherits:
-
Object
- Object
- DtraceAggregateSet
- Defined in:
- lib/dtraceaggregateset.rb
Overview
Ruby-Dtrace © 2007 Chris Andrews <[email protected]>
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #add_aggregate(agg) ⇒ Object
-
#initialize ⇒ DtraceAggregateSet
constructor
A new instance of DtraceAggregateSet.
Constructor Details
#initialize ⇒ DtraceAggregateSet
Returns a new instance of DtraceAggregateSet.
9 10 11 |
# File 'lib/dtraceaggregateset.rb', line 9 def initialize @data = Array.new end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/dtraceaggregateset.rb', line 7 def data @data end |
Instance Method Details
#add_aggregate(agg) ⇒ Object
13 14 15 |
# File 'lib/dtraceaggregateset.rb', line 13 def add_aggregate(agg) @data << agg end |