Sha256: 1c24f7707a0534204de636655a83425b6d6e667b7a68e81a455aeeadbf4e1a35
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lovely_rufus-1.0.1 | lib/lovely_rufus/cli_wrapper.rb |