Method: Fable::StoryState#reset_output!

Defined in:
lib/fable/story_state.rb

#reset_output!(objects_to_add = nil) ⇒ Object



545
546
547
548
549
550
551
552
# File 'lib/fable/story_state.rb', line 545

def reset_output!(objects_to_add = nil)
  self.output_stream = []
  if !objects_to_add.nil?
    self.output_stream += objects_to_add
  end

  output_stream_dirty!
end