File: stdlib-ext.gembox

package info (click to toggle)
nghttp2 1.68.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,592 kB
  • sloc: ansic: 104,233; cpp: 55,792; ruby: 30,108; yacc: 7,083; sh: 4,643; makefile: 1,506; python: 806
file content (21 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# It also works with MRB_NO_STDIO and MRB_NO_FLOAT.

MRuby::GemBox.new do |conf|
  # Use standard Array#pack, String#unpack methods
  conf.gem :core => "mruby-pack"

  # Use standard Kernel#sprintf method
  conf.gem :core => "mruby-sprintf"

  # Use standard Time class
  conf.gem :core => "mruby-time"

  # Use standard Struct class
  conf.gem :core => "mruby-struct"

  # Use standard Data class
  conf.gem :core => "mruby-data"

  # Use Random class
  conf.gem :core => "mruby-random"
end