Sha256: c66cc06f045c0eb5b9e087f0e9354e2d49f41093dc94327205ffae66e3139ba0
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
require_relative 'settings' require_relative 'text_wrapper' module LovelyRufus class CLIWrapper def initialize(args = ARGV, text_wrapper: TextWrapper) @settings = Settings.new(args) @text_wrapper = text_wrapper end def run(stream = $stdin) puts text_wrapper.wrap(stream.read, width: settings.width) end attr_reader :settings, :text_wrapper private :settings, :text_wrapper end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lovely_rufus-0.2.1 | lib/lovely_rufus/cli_wrapper.rb |
lovely_rufus-0.2.0 | lib/lovely_rufus/cli_wrapper.rb |