Sha256: 4b724f841dcd04d2c7210ebb2aff4b6ac184bfd467d4899c3f2123e3edb14ec6
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
# dictionary def dictlookup require 'extras/dict' if ! @a_dictionaryinput.empty? dict = DICT.new('dict.org', DICT::DEFAULT_PORT) dict.client('a Ruby/DICT client') definitions = dict.define(DICT::ALL_DATABASES, @a_dictionaryinput) @dictionary_display = "" if definitions definitions.each do |d| @dictionary_display = @dictionary_display + d.description + d.database + "\n" d.definition.each { |line| @dictionary_display = @dictionary_display + line } end end dict.disconnect @dictionary_display = @dictionary_display + "\n\n" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigtinker-0.94 | code/superant.com.words/dictlookup.rb |
bigtinker-0.93 | code/superant.com.words/dictlookup.rb |