Sha256: 563204663de98faa61c54bbaca82b9d45a42ccbaed54e5c156eb680db66ea9fa
Contents?: true
Size: 306 Bytes
Versions: 2
Compression:
Stored size: 306 Bytes
Contents
module Treedent class FormattedOutput < Struct.new(:input) def to_s tree.map { |node| NodeDrawing.new(node).to_s }.join end private def tree Tree.new(indented_lines) end def indented_lines input.lines.map { |line| IndentedLine.from(line) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
treedent-1.1.0 | lib/treedent/formatted_output.rb |
treedent-1.0.0 | lib/treedent/formatted_output.rb |