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