Class: DTrace::AggregateSet

Inherits:
Object
  • Object
show all
Defined in:
lib/dtrace/aggregateset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAggregateSet

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

#dataObject (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