rufus-mnemo Rubygems

Turning (large) integers into japanese sounding words and vice versa (ruby)

rufus-mnemo

This gem provides methods for turning integer into easier to remember ‘words’ and vice-versa.

The module Rufus::Mnemo has all the explanation.

getting it

gem install rufus-mnemo

or add it to your Gemfile.

usage

#require 'rubygems'
require 'rufus/mnemo'

p Rufus::Mnemo.from_integer(125704)
p Rufus::Mnemo.from_i(125704)
p Rufus::Mnemo.to_s(125704)
  # => 'karasu'

p Rufus::Mnemo.to_integer('karasu')
p Rufus::Mnemo.to_i('karasu')
p Rufus::Mnemo.from_s('karasu')
  # => 125704

about negative integers

They are prefixed with the “wi” syllable (Thanks Stephan Wehner).

p Rufus::Mnemo.from_integer(-173866)
p Rufus::Mnemo.to_s(-173866)
  # => 'winamote'

ports in other languages

dependencies

None.

mailing list

On the rufus-ruby list:

http://groups.google.com/group/rufus-ruby

IRC

On freenode.net, the #ruote channel

issue tracker

https://github.com/jmettraux/rufus-mnemo/issues

source

https://github.com/jmettraux/rufus-mnemo

author

John Mettraux, [email protected], http://lambda.io/jmettraux

license

MIT

Related Repositories

rufus-mnemo

rufus-mnemo

Turning (large) integers into japanese sounding words and vice versa (ruby) ...

mnemo

mnemo

Port of rufus-mnemo from ruby to golang ...


Top Contributors

jmettraux

Releases

-   v1.2.3 zip tar
-   v1.2.2 zip tar
-   v1.2.1 zip tar
-   v1.2.0 zip tar
-   r1.1.1 zip tar
-   r1.1.0 zip tar