https://github.com/lszeremeta/ruby-chardiff
Simple CharDiff class written in Ruby
https://github.com/lszeremeta/ruby-chardiff
character diff ruby str
Last synced: about 1 year ago
JSON representation
Simple CharDiff class written in Ruby
- Host: GitHub
- URL: https://github.com/lszeremeta/ruby-chardiff
- Owner: lszeremeta
- Created: 2014-11-22T17:25:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-22T17:26:26.000Z (over 11 years ago)
- Last Synced: 2025-02-15T11:48:39.667Z (over 1 year ago)
- Topics: character, diff, ruby, str
- Language: Ruby
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CharDiff (Ruby class)
=====================
**Simple CharDiff class written in Ruby**
Parameters
----------
* str1, str2 - words to compare
count method
------------
Returns number of differ characters between two words in the same position
Prerequisites
-------------
str1 & str2:
* can not be empty
* must have the same number of characters
* must be strings
* must be words (only alpha characters)
Author
------
(C) Copyright by Łukasz Szeremeta 2014