module Octiron::World::ClassMethods

Modules also can have class methods

Public Instance Methods

event_bus() click to toggle source

Singleton event bus @return (Octiron::Events::Bus) the bus.

# File lib/octiron/world.rb, line 33
def event_bus
  if @event_bus.nil?
    @event_bus = ::Octiron::Events::Bus.new
  end
  return @event_bus
end
transmogrifier_registry() click to toggle source

Singleton transmogrifier registry @return (Octiron::Transmogrifiers::Registry) the registry.

# File lib/octiron/world.rb, line 23
def transmogrifier_registry
  if @transmogrifier_registry.nil?
    @transmogrifier_registry = ::Octiron::Transmogrifiers::Registry.new
  end
  return @transmogrifier_registry
end