class NewRelic::Agent::SizedBuffer

Public Instance Methods

append_event(x) click to toggle source
# File lib/new_relic/agent/sized_buffer.rb, line 10
def append_event(x)
  if @items.size < @capacity
    @items << x
    return x
  else
    return nil
  end
end