Sha256: 1c787d7c2580732d0880d72d79c67bdc07388d6e55a7e8a21f370913a50ee8d0

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
# require 'loose_tight_dictionary'
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'loose_tight_dictionary.rb'))
right_side = [ 'seamus', 'andy', 'ben' ]
left_side = [ 'Mr. Seamus', 'Sr. Andy', 'Master BenT' ]

puts "Left side (input)"
puts "=" * 20
puts left_side
puts

puts "Right side (output)"
puts "=" * 20
puts right_side
puts

puts "Results"
puts "=" * 20
d = LooseTightDictionary.new right_side, :tee => STDOUT, :tee_format => :fixed_width
d.check left_side

puts d.left_to_right 'Shamus Heaney'

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
loose_tight_dictionary-0.0.10 examples/first_name_matching.rb
loose_tight_dictionary-0.0.9 examples/first_name_matching.rb
loose_tight_dictionary-ruby19-0.0.8 examples/first_name_matching.rb
loose_tight_dictionary-0.0.8 examples/first_name_matching.rb
loose_tight_dictionary-0.0.7 examples/first_name_matching.rb
loose_tight_dictionary-0.0.6 examples/first_name_matching.rb