Sha256: 7e2dcadf2f18505490de0fb7dc62d70b2d25dc4d41bb5aa42a9b2c97daa27732

Contents?: true

Size: 537 Bytes

Versions: 19

Compression:

Stored size: 537 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.join("\n")
   text.gsub!(/\n/, " ")
   words = text.split.sort
   words.each_slice(cols) do |row| 
     row.each {|w| _out! '%-15s' % w }
     _out
   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


And that is all.

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
livetext-0.9.24 test/snapshots/example_alpha2/source.lt3
livetext-0.9.23 test/snapshots/example_alpha2/source.lt3
livetext-0.9.22 test/snapshots/example_alpha2/source.lt3
livetext-0.9.21 test/snapshots/example_alpha2/source.lt3
livetext-0.9.20 test/snapshots/example_alpha2/source.lt3
livetext-0.9.19 test/snapshots/example_alpha2/source.lt3
livetext-0.9.17 test/snapshots/example_alpha2/source.lt3
livetext-0.9.15 test/snapshots/example_alpha2/source.lt3
livetext-0.9.14 test/snapshots/example_alpha2/source.lt3
livetext-0.9.13 test/snapshots/example_alpha2/source.lt3
livetext-0.9.11 test/data/example_alpha2/source.lt3
livetext-0.9.10 test/data/example_alpha2/source.lt3
livetext-0.9.09 test/data/example_alpha2/source.lt3
livetext-0.9.08 test/data/example_alpha2/source.lt3
livetext-0.9.07 test/data/example_alpha2/source.lt3
livetext-0.9.06 test/data/example_alpha2/source.lt3
livetext-0.9.05 test/data/example_alpha2/source.lt3
livetext-0.9.04 test/data/example_alpha2/source.lt3
livetext-0.9.03 test/data/example_alpha2/source.lt3