Module: ElasticTabstops

Defined in:
lib/elastic_tabstops.rb,
lib/elastic_tabstops/version.rb,
lib/elastic_tabstops/formatter.rb,
lib/elastic_tabstops/outstream_to_lines.rb

Defined Under Namespace

Classes: Error, Formatter, OutstreamToLines

Constant Summary collapse

VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.make_stream(output_stream, tabchar: "\t", padchar: ' ') ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/elastic_tabstops.rb', line 9

def self.make_stream(output_stream, tabchar: "\t", padchar: ' ')
  formatter = ElasticTabstops::Formatter.new(
    output_stream,
    tabchar: tabchar,
    padchar: padchar
  )
  ElasticTabstops::OutstreamToLines.new(formatter)
end