Module: StoryTeller

Defined in:
lib/story_teller/io.rb,
lib/story_teller/color.rb,
lib/story_teller/daemon.rb,
lib/story_teller/engine.rb,
lib/story_teller/command.rb,
lib/story_teller/command.rb,
lib/story_teller/context.rb,
lib/story_teller/library.rb,
lib/story_teller/plurals.rb,
lib/story_teller/version.rb,
lib/story_teller/articles.rb,
lib/story_teller/builtins.rb,
lib/story_teller/inflector.rb,
lib/story_teller/publication.rb,
lib/story_teller/subscription.rb,
lib/story_teller/model_adapter.rb,
lib/story_teller/library/loader.rb,
lib/story_teller/library/location.rb,
lib/story_teller/ephemeral_adapter.rb,
lib/story_teller/library/bootstrap.rb,
lib/story_teller/library/directives.rb,
lib/story_teller/library/declarations.rb

Overview

The StoryTeller module

Defined Under Namespace

Modules: Articles, Builtins, Color, Commands, Daemons, Engine, EphemeralAdapter, IO, Inflector, Library, ModelAdapter, Plurals, Privileges, Publisher, Subscribers Classes: Command, CommandCauseRecordNotFoundError

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.contextObject



28
29
30
# File 'lib/story_teller/context.rb', line 28

def self.context
  context_class.new
end

.context_classObject



24
25
26
# File 'lib/story_teller/context.rb', line 24

def self.context_class
  Inform::Context.definition || Inform::Context.set(StoryTeller::Engine.invocation_context)
end

Instance Method Details

#run_daemonsObject



79
80
81
82
# File 'lib/story_teller/daemon.rb', line 79

def run_daemons
  return if defined?(TURN_BASED)
  StoryTeller::Daemons.start
end