mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
Merge pull request #240 from gaffneyc/require-common-practice
Make it possible to `require "therubyracer"`.
This commit is contained in:
commit
9921ed1665
2 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@ then in your Ruby code
|
|||
|
||||
require 'v8'
|
||||
# or if using bundler (as with Rails), add the following to your Gemfile
|
||||
gem "therubyracer", :require => 'v8'
|
||||
gem "therubyracer"
|
||||
|
||||
evaluate some simple JavaScript
|
||||
|
||||
|
|
1
lib/therubyracer.rb
Normal file
1
lib/therubyracer.rb
Normal file
|
@ -0,0 +1 @@
|
|||
require "v8"
|
Loading…
Add table
Reference in a new issue