https://github.com/hanachin/mruby-string-xor
Add String#^(other) method that return XOR of two strings.
https://github.com/hanachin/mruby-string-xor
mruby
Last synced: 24 days ago
JSON representation
Add String#^(other) method that return XOR of two strings.
- Host: GitHub
- URL: https://github.com/hanachin/mruby-string-xor
- Owner: hanachin
- License: other
- Created: 2017-02-10T16:46:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T05:07:05.000Z (almost 7 years ago)
- Last Synced: 2024-08-03T08:02:37.065Z (10 months ago)
- Topics: mruby
- Language: C
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mruby - mruby-string-xor - Add String#^(other) method that return XOR of two strings. (Utilities)
README
mruby-string-xor [](https://travis-ci.org/hanachin/mruby-string-xor)
====Add String#^(other) method that return XOR of two strings.
Installation
----Add this line to build_config.rb
```ruby
MRuby::Build.new do |conf|
conf.gem github: 'hanachin/mruby-string-xor'
end
```or add this line to your aplication's mrbgem.rake
```ruby
MRuby::Gem::Specification.new('your-mrbgem') do |spec|
spec.add_dependency 'mruby-string-xor', github: 'hanachin/mruby-string-xor'
end
```Usage
----```ruby
'わーい!' ^ 'わーい!'
# => "\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.shLicense
----MIT