Class: DTrace::AggregateSet
- Inherits:
-
Object
- Object
- DTrace::AggregateSet
- Defined in:
- lib/dtrace/aggregateset.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #add_aggregate(agg) ⇒ Object
-
#initialize ⇒ AggregateSet
constructor
A new instance of AggregateSet.
Constructor Details
#initialize ⇒ AggregateSet
Returns a new instance of AggregateSet.
10 11 12 |
# File 'lib/dtrace/aggregateset.rb', line 10 def initialize @data = Array.new end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/dtrace/aggregateset.rb', line 8 def data @data end |
Instance Method Details
#add_aggregate(agg) ⇒ Object
14 15 16 |
# File 'lib/dtrace/aggregateset.rb', line 14 def add_aggregate(agg) @data << agg end |