Add String#^(other) method that return XOR of two strings.
C Ruby Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.travis.yml
LICENSE
README.md
build_config.rb
mrbgem.rake
mruby-string-xor.gem
test.sh

README.md

mruby-string-xor Build Status

Add String#^(other) method that return XOR of two strings.

Installation

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

Usage

'わーい!' ^ 'わーい!'
# => "\000\000\000\000\000\000\000\000\000\000\000\000"

How to execute test

$ git clone https://github.com/hanachin/mruby-string-xor.git
$ cd mruby-string-xor
$ ./test.sh

License

MIT