Sha256: a32fd22261dd460a57051da24d81c73d431d57ac47b24e467a54881d055e0744

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

module Straightedge
  class Engine
    attr_reader :adapter, :surface, :agent
    def initialize(surface_geometry=Straightedge.config.geometry)
      @agent   = Straightedge.new_agent
      @surface = Straightedge.new_surface(surface_geometry)
      @adapter = Straightedge.new_adapter(agent: @agent, plane: @surface)
    end

    def boot
      @adapter.kickstart
    end
  end

  config.engine_class = Engine
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
straightedge-0.1.2 lib/straightedge/motor/engine.rb
straightedge-0.1.1 lib/straightedge/motor/engine.rb