Sha256: 93fde36a33cddf38c0fd8d0cad9e0ac25223f037b6471318059416df3af6b785

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

module SolidusFeeds
  module Publishers
    class StaticFile
      attr_reader :path

      def initialize(path:)
        @path = path
      end

      def call(&block)
        File.open(path, 'w', &block)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_feeds-0.1.0 lib/solidus_feeds/publishers/static_file.rb