mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
6c1c2041ef
I think that it is easy to use if it is divided according to the type of library and the general purpose. It is a subdivision from the previous `default.gembox`. By type gembox: - `stdlib`: Add some standard Ruby methods not provided by core. - `stdlib-ext`: Add some standard Ruby methods that are not provided by `stdlib`. - `stdlib-io`: Provides `IO`, `File`, `Socket`, `print`, etc. Conflict with `MRB_NO_STDIO` - `math`: Add a class related to math. Conflict with `MRB_NO_FLOAT` - `metaprog`: Adds features related to metaprogramming. Purpose gembox: - `default.gembox`: Import the same gems as before - `default-no-stdio.gembox`: Import the` stdlib` and `math` - `default-no-fpu.gembox`: Import the` stdlib` only
13 lines
262 B
Plaintext
13 lines
262 B
Plaintext
# It also works with MRB_NO_FLOAT.
|
|
|
|
MRuby::GemBox.new do |conf|
|
|
# Use standard IO/File class
|
|
conf.gem :core => "mruby-io"
|
|
|
|
# Use standard IO/File class
|
|
conf.gem :core => "mruby-socket"
|
|
|
|
# Use standard print/puts/p
|
|
conf.gem :core => "mruby-print"
|
|
end
|