Sha256: 7fba088e0b13abc579597c012218f6355b65cc048b6407a72ba272e4e4f09826
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
#!/usr/bin/ruby # # Written to find a minimal testcase for the #conjunction-with-block bug. # # Time-stamp: <04-Nov-2005 07:43:36 ged> # BEGIN { base = File::dirname( File::dirname(File::expand_path(__FILE__)) ) $LOAD_PATH.unshift "#{base}/lib" require "#{base}/utils.rb" include UtilityFunctions } require 'linguistics' Linguistics::use( :en, :installProxy => true ) array = %w{sheep shrew goose bear penguin barnacle sheep goose goose} $defout.puts "Called via language proxy: ", array.en.conjunction {|word| "%s-word" % [word[0,1]]} $defout.puts "Called via delegator proxy: ", array.conjunction {|word| "%s-word" % [word[0,1]]} $defout.puts "Called via language proxy: ", array.en.conjunction {|word| "%s-word" % [word[0,1]]}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eviltrout-linguistics-1.0.6.1 | experiments/conjunct-with-block.rb |