mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
3272955bf1
ENV is a plain Object with singleton methods and Enumerable, matching CRuby's behavior. C methods wrap getenv/setenv/unsetenv with platform support for POSIX, macOS, and Windows. Co-authored-by: Claude <noreply@anthropic.com>
19 lines
403 B
Plaintext
19 lines
403 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 errno extension for a good mruby-io/mruby-socket experience
|
|
conf.gem :core => "mruby-errno"
|
|
|
|
# Use Dir class
|
|
conf.gem :core => "mruby-dir"
|
|
|
|
# Use ENV object
|
|
conf.gem :core => "mruby-env"
|
|
end
|