Add String#^(other) method that return XOR of two strings.
Add this line to build_config.rb
MRuby::Build.new do |conf|
conf.gem github: 'hanachin/mruby-string-xor'
end
or add this line to your aplication's mrbgem.rake
MRuby::Gem::Specification.new('your-mrbgem') do |spec|
spec.add_dependency 'mruby-string-xor', github: 'hanachin/mruby-string-xor'
end
'わーい!' ^ 'わーい!'
# => "\000\000\000\000\000\000\000\000\000\000\000\000"
$ git clone https://github.com/hanachin/mruby-string-xor.git
$ cd mruby-string-xor
$ ./test.sh
MIT