mirror of https://github.com/tailix/mrubyvisor.git
Add gembox "stdlib"; make Ruby module more complex
This commit is contained in:
parent
baa2fe62c4
commit
cf40b5b917
|
@ -2,6 +2,7 @@ MRuby::CrossBuild.new ENV.fetch 'BUILD_NAME' do |conf|
|
||||||
conf.toolchain :gcc
|
conf.toolchain :gcc
|
||||||
|
|
||||||
conf.gem core: 'mruby-compiler'
|
conf.gem core: 'mruby-compiler'
|
||||||
|
conf.gembox 'stdlib'
|
||||||
|
|
||||||
conf.cc.flags <<
|
conf.cc.flags <<
|
||||||
'-Wall' <<
|
'-Wall' <<
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
hello = 'Hello, World!'
|
hello = 'Hello, World'
|
||||||
works = 'Ruby modules work!'
|
works = 'Ruby modules work'
|
||||||
s = [hello, works].join ' '
|
s = [hello, works].map { |s| "#{s}!" }.join ' '
|
||||||
console_puts s
|
console_puts s
|
||||||
|
|
Loading…
Reference in New Issue