Skip to content

Commit

Permalink
We are smarter than autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jun 7, 2010
1 parent dcaab2e commit 5c82957
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
9 changes: 8 additions & 1 deletion lib/rednode/context.rb
Expand Up @@ -5,7 +5,14 @@
require 'v8'
end

require 'rednode/node'
module Rednode
module Node
end
end

require 'rednode/node/binding_module'
require 'rednode/node/exports'
require 'rednode/node/process'

module Rednode
NODELIB = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'ext', 'node'))
Expand Down
14 changes: 0 additions & 14 deletions lib/rednode/node.rb

This file was deleted.

1 change: 1 addition & 0 deletions lib/rednode/node/process.rb
Expand Up @@ -7,6 +7,7 @@ def initialize(context, global, main_js)
@global = global
@main_js = main_js
@bindings = Hash.new do |h, mod|
require "rednode/node/#{mod}"
module_name = camelize(mod)
h[mod] = Rednode::Node.const_get(module_name).new(context)
end
Expand Down

0 comments on commit 5c82957

Please sign in to comment.