Skip to content

Commit c0901d7

Browse files
committed
Update README.md
1 parent 9353ad3 commit c0901d7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# CommonJS [![Build Status](https://secure.travis-ci.org/cowboyd/commonjs.rb.png)](http://travis-ci.org/cowboyd/commonjs.rb)
32

43
Host CommonJS JavaScript environments in Ruby
@@ -14,12 +13,12 @@ able to use commonjs applications and libraries?
1413

1514
## Using common JS from Ruby.
1615

17-
`CommonJS` now passes all of the Modules 1.0 unit tests
18-
19-
env = CommonJS::Environment.new(:path => '/path/to/lib/dir')
20-
env.require('foo.js')
21-
16+
`CommonJS` now passes all of the Modules 1.0 unit tests.
2217

18+
```ruby
19+
env = CommonJS::Environment.new(:path => '/path/to/lib/dir')
20+
env.require('foo.js')
21+
```
2322

2423
## Future directions
2524

@@ -29,7 +28,9 @@ The plan however, is to allow you to extend your commonjs environment to have wh
2928
interfaces you want in it. So for example, if you want to allow filesystem access, as well as
3029
access to the process information, you would say:
3130

32-
env.modules :filesystem, :process
31+
```ruby
32+
env.modules :filesystem, :process
33+
```
3334

3435
## Supported runtimes
3536

0 commit comments

Comments
 (0)