Sha256: c11029c998d45251af2cb99a9388c38abd2885dcc3f4bd0f437bdd9a77071c33

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 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

2 entries across 2 versions & 1 rubygems

Version Path
ruote-0.9.20 examples/kotoba.rb
ruote-0.9.19 examples/kotoba.rb