Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahara committed Nov 15, 2013
1 parent d54c726 commit 4c876ae
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
@@ -1,6 +1,35 @@
mruby-require
=============

"mruby-require" is a mrbgem, provides
[require](http://docs.ruby-lang.org/ja/2.0.0/class/Kernel.html#M_REQUIRE) and
[load](http://docs.ruby-lang.org/ja/2.0.0/class/Kernel.html#M_LOAD) for mruby.

### Exmaple:

```Ruby
# a.rb

require "b"

b = Bclass.new
p b.method
```
```Ruby
# b.rb

class Bclass
def method
"BBB"
end
end
```
```sh
% mruby a.rb
"BBB"
```


### To build:

Depend mrbgems:
Expand Down

0 comments on commit 4c876ae

Please sign in to comment.