Sha256: c7b7fa4c1c781cae73dd4f877b64124c0acc37df354617f400bee26b0aaa7f05

Contents?: true

Size: 576 Bytes

Versions: 16

Compression:

Stored size: 576 Bytes

Contents

.def alpha
   cols = api.args.first
   cols = "1" if cols == ""
   cols = cols.to_i
   raise "Columns must be 1-5" unless cols.between?(1,5)
   text = api.body.join("\n")
   text.gsub!(/\n/, " ")
   words = text.split.sort
   words.each_slice(cols) do |row| 
     row.each {|w| api.out! '%-15s' % w }
     api.out
   end
   api.optional_blank_line
.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

16 entries across 16 versions & 1 rubygems

Version Path
livetext-0.9.49 test/snapshots/example_alpha2/source.lt3
livetext-0.9.42 test/snapshots/example_alpha2/source.lt3
livetext-0.9.41 test/snapshots/example_alpha2/source.lt3
livetext-0.9.40 test/snapshots/example_alpha2/source.lt3
livetext-0.9.39 test/snapshots/example_alpha2/source.lt3
livetext-0.9.38 test/snapshots/example_alpha2/source.lt3
livetext-0.9.37 test/snapshots/example_alpha2/source.lt3
livetext-0.9.36 test/snapshots/example_alpha2/source.lt3
livetext-0.9.35 test/snapshots/example_alpha2/source.lt3
livetext-0.9.33 test/snapshots/example_alpha2/source.lt3
livetext-0.9.32 test/snapshots/example_alpha2/source.lt3
livetext-0.9.31 test/snapshots/example_alpha2/source.lt3
livetext-0.9.30 test/snapshots/example_alpha2/source.lt3
livetext-0.9.27 test/snapshots/example_alpha2/source.lt3
livetext-0.9.26 test/snapshots/example_alpha2/source.lt3
livetext-0.9.25 test/snapshots/example_alpha2/source.lt3