Class: Inform::Object
- Extended by:
- AdapterClassDelegation
- Includes:
- Context, Events, Genealogical, Linkable, Modular, Prototypical, Taggable, StoryTeller::Builtins, StoryTeller::Daemons, StoryTeller::IO, StoryTeller::Publisher
- Defined in:
- lib/story_teller/world_tree.rb,
lib/story_teller/inform/base.rb
Overview
class Object
Direct Known Subclasses
Constant Summary
Constants included from Prototypical
Prototypical::AccessorMethodTemplate, Prototypical::LinkPattern, Prototypical::MISSING_PROPERTIES_MESSAGE, Prototypical::MethodBooleanOrBangPattern, Prototypical::MethodWriterPattern, Prototypical::MethodWriterTemplate, Prototypical::VariableTemplate, Prototypical::WriterMethodTemplate
Constants included from Events
Events::DEFAULT_ADD_EVENT_PARAMS, Events::REGISTRY, Events::THREADS_PER_PROCESSOR
Constants included from Context
Context::AttributeFieldReferenceTemplate, Context::AttributeSetterMethodTemplate
Constants included from StoryTeller::Daemons
StoryTeller::Daemons::DaemonExecutionElapsedMessage, StoryTeller::Daemons::DaemonScanElapsedMessage, StoryTeller::Daemons::RecordNotFoundPattern
Constants included from StoryTeller::Subscribers
StoryTeller::Subscribers::REGISTRY
Constants included from StoryTeller::IO
StoryTeller::IO::ItemPaddingString, StoryTeller::IO::MinimumCellPadding, StoryTeller::IO::MinimumColumnPadding, StoryTeller::IO::MinimumLineLength
Constants included from StoryTeller::Builtins
StoryTeller::Builtins::MethodDefinitionPattern, StoryTeller::Builtins::MethodTerminationPattern, StoryTeller::Builtins::NOUN, StoryTeller::Builtins::PLURAL, StoryTeller::Builtins::PREPOSITION, StoryTeller::Builtins::VERB
Constants included from StoryTeller::Color
StoryTeller::Color::BackgroundColorCodes, StoryTeller::Color::ColorCodes, StoryTeller::Color::NearestColor, StoryTeller::Color::StyleCodes
Constants included from StoryTeller::Articles
StoryTeller::Articles::LowercaseASpaceString, StoryTeller::Articles::LowercaseSomeSpaceString, StoryTeller::Articles::LowercaseTheSpaceString
Class Method Summary collapse
- .adapter_class ⇒ Object
- .all(*args, **kwargs, &block) ⇒ Object
- .build(*args, **kwargs, &block) ⇒ Object
- .create(*args, **kwargs, &block) ⇒ Object
- .fetch_or_create_by_name(*args, **kwargs, &block) ⇒ Object
- .new(*args, **kwargs, &block) ⇒ Object
Methods included from AdapterClassDelegation
===, delegated_adapter_class, method_missing, respond_to_missing?
Methods included from Genealogical
#>, #all?, #any?, #branch, #child, #children, #collect, #concat, #count, #delete_if, #each, #each_with_object, #find, #find_all, #having, #in?, #include?, #map, #notin?, #reject, #select, #sibling, #siblings, #within?
Methods included from Modular
#after_initialize, #apply_modules, #mod, #modules, #modules_semaphore, #nil_safe_modules, #reset_modules, #unmod
Methods included from Taggable
#nil_safe_tags, #tag, #tag_names, #tagged_with?, #tagged_with_all?, #tagged_with_any?, #tagged_with_none?, #untag
Methods included from TagHelpers
#attributes, #has, #has?, #hasany?, #hasnt, #hasnt?
Methods included from Linkable
#_set_object, #link, #linked?, #links, #linksfrom, #linkto, #unlink
Methods included from Prototypical
#&, #_assign, #_get, #_set, #accessor_and_writer, #context_event, #ensure_properties_attribute!, #instance_variables_map, #key_refers_to_link?, #method_missing, #prototype, #string?, #values, #|
Methods included from Events
#active?, active_objects, #add_event, available_processors, #contextualize, #delay, each, #elementally, #event, #events, #immediately, init_java_pool, init_java_pooled_executor, init_java_scheduled_executor, init_java_scheduler, init_pool, init_scheduled_executor, init_scheduler, #interrupt, object_events, pool, pooled_executor, possibilities, #register_callback, scheduled_executor, scheduler
Methods included from Context
definition, each_attribute, get_value, set, setter_method
Methods included from StoryTeller::Daemons
#StartDaemon, #StartTimer, #StopDaemon, #StopTimer, #before_destroy, #daemonic?, #daemonize, daemons, ensure_inform_library, execute, execute_daemon, execute_each_turn, #ghost, #heart, #init_heart, #occasionally, #on?, refresh_or_remove, #rescan, scan_objects, #schedules, #spawn, start, stop
Methods included from StoryTeller::Publisher
#muted?, #publish, #publish_except, #publish_only, #publish_system_message, #subscribers
Methods included from StoryTeller::Subscribers
#explicit_subscribers, #subscribe, #subscribers, #unsubscribe, #unsubscribe_all
Methods included from StoryTeller::IO
#connections, #flush_io, #inform, #many_per_line, #new_line, #noop, #out, #output_stream, #print, #println, #prompt, #read, #reset_prompt, #session, #spaces, #tidy_output
Methods included from StoryTeller::Builtins
#__quit, #__read, #__restart, #__restore, #__save, #__verify, #apply_instance_behavior!, #classification, #compass, #content, #current_word, #deadflag, #deadflag=, #dict_par1, #dictionary, #disrobe, #drop, #emote, #findobject, #getobject, #go, #initial, #language_descriptors, #language_pronouns, #library_method?, #life?, #light_adjusted, #method_source, #nothing, #num_words, #number, #objectloop, #ofclass, #pause, #provides?, #randomly, #react_after?, #react_before?, #remaining_words, #resembles_method?, #say, #score, #score=, #search, #special, #the_time, #the_time=, #things_score, #things_score=, #to_s, #topic, #visibility_ceiling=, #with, #workflags
Methods included from StoryTeller::Plurals
#apply_inflections, #plural?, #pluralize, #singular?, #singularize
Methods included from StoryTeller::Color
#background_color, #color, #nearest_color, #style, #un_background_color, #un_color, #un_style
Methods included from StoryTeller::Articles
#A, #Cthatorthose, #Ctheyreorthats, #The, #a, #cthatorthose, #ctheyreorthats, #defart, #indefart, #isorare, #itorthem, #thatorthose, #the
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Inform::Prototypical
Class Method Details
.adapter_class ⇒ Object
56 57 58 |
# File 'lib/story_teller/inform/base.rb', line 56 def adapter_class StoryTeller::ModelAdapter.object_class end |
.all(*args, **kwargs, &block) ⇒ Object
90 91 92 93 94 95 96 |
# File 'lib/story_teller/inform/base.rb', line 90 def all(*args, **kwargs, &block) if equal?(Inform::Object) StoryTeller::ModelAdapter.object_class!.all(*args, **kwargs, &block) else super end end |
.build(*args, **kwargs, &block) ⇒ Object
66 67 68 69 70 71 72 |
# File 'lib/story_teller/inform/base.rb', line 66 def build(*args, **kwargs, &block) if equal?(Inform::Object) StoryTeller::ModelAdapter.object_class!.new(*args, **kwargs, &block) else super end end |
.create(*args, **kwargs, &block) ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/story_teller/inform/base.rb', line 74 def create(*args, **kwargs, &block) if equal?(Inform::Object) StoryTeller::ModelAdapter.object_class!.create(*args, **kwargs, &block) else new(*args, **kwargs, &block) end end |
.fetch_or_create_by_name(*args, **kwargs, &block) ⇒ Object
82 83 84 85 86 87 88 |
# File 'lib/story_teller/inform/base.rb', line 82 def fetch_or_create_by_name(*args, **kwargs, &block) if equal?(Inform::Object) StoryTeller::ModelAdapter.object_class!.fetch_or_create_by_name(*args, **kwargs, &block) else super end end |
.new(*args, **kwargs, &block) ⇒ Object
60 61 62 63 64 |
# File 'lib/story_teller/inform/base.rb', line 60 def new(*args, **kwargs, &block) return super unless equal?(Inform::Object) StoryTeller::ModelAdapter.object_class!.new(*args, **kwargs, &block) end |