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 30
def initialize(config, lingo)
  @buffer = []
  super
end

Public Instance Methods

process(obj) click to toggle source
# File lib/lingo/buffered_attendee.rb, line 35
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 46
def process_buffer
  raise NotImplementedError
end
process_buffer?() click to toggle source
# File lib/lingo/buffered_attendee.rb, line 42
def process_buffer?
  raise NotImplementedError
end