Sha256: 674ce13b191c6e69f8eae03c0b31f198c2e23a88f61c65612782279681dc93ae

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

module Rednode
  class Node

    attr_reader :engine, :main

    def initialize(main)
      @engine = V8::Context.new
      @node = @engine.load(File.join(NODE_HOME, 'src', 'node.js'))
      @main = main
    end

    def start(process = Process.new(self))
      @node.call(process)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rednode-0.1.2 lib/rednode/node.rb
rednode-0.1.1 lib/rednode/node.rb
rednode-0.1.0 lib/rednode/node.rb