class Lingo::BufferedAttendee

Public Class Methods

new(config, lingo) click to toggle source
Calls superclass method Lingo::Attendee.new
# File lib/lingo/buffered_attendee.rb, line 31
def initialize(config, lingo)
  @buffer = []
  super
end

Public Instance Methods

process(obj) click to toggle source
# File lib/lingo/buffered_attendee.rb, line 36
def process(obj)
  obj.word_token? ? forward(obj) : @buffer << obj
  process_buffer if process_buffer?
end

Private Instance Methods

process_buffer() click to toggle source
# File lib/lingo/buffered_attendee.rb, line 47
def process_buffer
  raise NotImplementedError
end
process_buffer?() click to toggle source
# File lib/lingo/buffered_attendee.rb, line 43
def process_buffer?
  raise NotImplementedError
end