Sha256: 325486da03a272de048df5190d17cb3f2225f5f0542195c706a1ffb207f7e619
Contents?: true
Size: 551 Bytes
Versions: 66
Compression:
Stored size: 551 Bytes
Contents
.def alpha cols = _args.first cols = "1" if cols == "" cols = cols.to_i raise "Columns must be 1-5" unless cols.between?(1,5) text = _body_text text.gsub!(/\n/, " ") words = text.split.sort words.each_slice(cols) do |row| row.each {|w| _print '%-15s' % w } _puts end .end Here is an alphabetized list: .alpha 3 fishmonger anarchist aardvark glyph gryphon halcyon zymurgy mataeotechny zootrope pareidolia manicotti quark bellicose anamorphic cytology fusillade ectomorph .end I hope that worked a second time.
Version data entries
66 entries across 66 versions & 1 rubygems