Sha256: 6e576aaa47a3399335d7c492c2d01443af3acb2e169d988ef6463bbade3f965d
Contents?: true
Size: 405 Bytes
Versions: 4
Compression:
Stored size: 405 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 private_attr_reader :settings, :text_wrapper end end
Version data entries
4 entries across 4 versions & 1 rubygems