source: EcnlProtoTool/trunk/mrbgems/mruby-require/README.md@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

File size: 1.5 KB
Line 
1mruby-require
2=============
3
4"mruby-require" is a mrbgem, provides
5[require](http://docs.ruby-lang.org/ja/2.0.0/class/Kernel.html#M_REQUIRE) and
6[load](http://docs.ruby-lang.org/ja/2.0.0/class/Kernel.html#M_LOAD) for mruby.
7
8### Example:
9
10```Ruby
11# a.rb
12
13require "b"
14
15b = Bclass.new
16p b.method
17```
18```Ruby
19# b.rb
20
21class Bclass
22 def method
23 "BBB"
24 end
25end
26```
27```sh
28% mruby a.rb
29"BBB"
30```
31
32
33### To run the tests:
34
35 ruby run_test.rb
36
37
38## License
39
40Copyright (c) 2013 Internet Initiative Japan Inc.
41
42Permission is hereby granted, free of charge, to any person obtaining a
43copy of this software and associated documentation files (the "Software"),
44to deal in the Software without restriction, including without limitation
45the rights to use, copy, modify, merge, publish, distribute, sublicense,
46and/or sell copies of the Software, and to permit persons to whom the
47Software is furnished to do so, subject to the following conditions:
48
49The above copyright notice and this permission notice shall be included in
50all copies or substantial portions of the Software.
51
52THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
54FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
57FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
58DEALINGS IN THE SOFTWARE.
59
Note: See TracBrowser for help on using the repository browser.