Sha256: 26c9f0f7eb0e18a5056b812831824732b6c64aea99a1be519a6039e82195222a

Contents?: true

Size: 345 Bytes

Versions: 11

Compression:

Stored size: 345 Bytes

Contents

require 'pp'
require 'rubygems'
require 'openwfe/util/kotoba'

3.times do

    i = (rand * 1000000).to_i
    s = Kotoba::from_integer i

    puts "#{i} => #{s}"
    puts "#{s} => #{Kotoba::to_integer(s)}"
        # forth and back

    a = Kotoba::split s

    print "#{s} => "; pp a
        # showing how the 'word' is split

    puts "."
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
openwferu-0.9.12.863 examples/kotoba.rb
openwferu-0.9.13 examples/kotoba.rb
openwferu-0.9.14 examples/kotoba.rb
openwferu-0.9.15 examples/kotoba.rb
openwferu-0.9.10 examples/kotoba.rb
openwferu-0.9.10.653 examples/kotoba.rb
openwferu-0.9.11 examples/kotoba.rb
openwferu-0.9.12 examples/kotoba.rb
openwferu-0.9.17 examples/kotoba.rb
openwferu-0.9.16 examples/kotoba.rb
ruote-0.9.18 examples/kotoba.rb