Skip to content

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

License

Notifications You must be signed in to change notification settings

hanachin/mruby-string-xor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published