Sha256: cc8ad6829473824e83ca10fb397051bbca12ee846fe7290f056e0a6d2313ffe7

Contents?: true

Size: 799 Bytes

Versions: 4

Compression:

Stored size: 799 Bytes

Contents

If we're at level x
  the current level should be x.
If we find an indent word there
  the level of the current line should be x + 1.
    unless that's the first indent word we found.
If we find and outdent word there
  the level of current line should be x - 1.
If we don't find an indent word there
  the level of the next line should be x.

The first current level is NOT set by the first line encountered.
  The first current level is always 0.


Before executing:
line 1
next level should be 0

Check line 1:
is should be at level 0
if it contains in keyword, change next level to 1
(else, next level stays at 0)

Check line 2:
it should be at level 1
if it contains in keyword, change next level to 2

Check line 3:
it should be at level 2
if it contains an out keyword, chnage next level to 1

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tailor-0.1.3 logic.txt
tailor-0.1.2 logic.txt
tailor-0.1.1 logic.txt
tailor-0.1.0 logic.txt