An open API service indexing awesome lists of open source software.

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

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