Sha256: f7c43ee96ff3c8503b0016fef138b40f3d8970d2dc8d38d569d7b111ad9ab2fc
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
# frozen_string_literal: true module SolidusFeeds class Feed attr_accessor :generator, :publisher def initialize yield(self) if block_given? end def generate(output) generator.call(output) end def publish publisher.call do |output| generate(output) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_feeds-0.1.0 | lib/solidus_feeds/feed.rb |