Sha256: aaa0e1444ac9775d5ac4f7d10bb188c635cf2f2144fe114b265963b18bdb85a1
Contents?: true
Size: 396 Bytes
Versions: 9
Compression:
Stored size: 396 Bytes
Contents
#!/usr/bin/env ruby unless RUBY_VERSION >= '1.9' require 'rubygems' end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'loose_tight_dictionary' haystack = [ 'seamus', 'andy', 'ben' ] needles = [ 'Mr. Seamus', 'Sr. Andy', 'Master BenT', 'Shamus Heaney' ] d = LooseTightDictionary.new haystack, :log => $stdout needles.each do |needle| d.explain needle puts end
Version data entries
9 entries across 9 versions & 1 rubygems