Sha256: 7d0cfc18ab0eb2d1cd88ae188a3e578015a075eaddd412f7f5b35b974f789bc8
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
# frozen_string_literal: true require "refinements/pathname" module Milestoner module Builders # Builds I/O stream output. class Stream include Milestoner::Import[:input, :kernel] using Refinements::Pathname def initialize(view: Views::Milestones::Show.new, enricher: Commits::Enricher.new, **) @view = view @enricher = enricher super(**) end def call enricher.call.fmap do |commits| kernel.puts view.call(commits:, layout: input.build_layout, format: :stream).to_s kernel end end private attr_reader :view, :enricher end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
milestoner-17.11.0 | lib/milestoner/builders/stream.rb |
milestoner-17.10.0 | lib/milestoner/builders/stream.rb |
milestoner-17.9.0 | lib/milestoner/builders/stream.rb |