class Arbolobra::CharList
in lead: + - marker to child \ - marker to last
-
over to child
-
Constants
- DEFAULT_INTRO
- DEFAULT_LEAD
Public Class Methods
new(chars, width: 4)
click to toggle source
# File lib/arbolobra/chars.rb, line 56 def initialize chars, width: 4 @chars = chars @width = width end
Public Instance Methods
expand(is_last)
click to toggle source
# File lib/arbolobra/chars.rb, line 61 def expand is_last leftchr = @chars[is_last ? 0 : 1] repeatchr = @chars[2] leftchr + repeatchr * (@width - 1) end