Sha256: 63f747e19916a44fc17f347966dd468798ff2cee06892d4a6e0875ffcfc78930

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

require 'sym/app/output/base'
module Sym
  module App
    module Output
      class File < ::Sym::App::Output::Base

        required_option :output

        def output_proc
          ->(data) {
            ::File.open(opts[:output], 'w') { |f| f.write(data) }
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sym-2.5.3 lib/sym/app/output/file.rb
sym-2.5.1 lib/sym/app/output/file.rb
sym-2.5.0 lib/sym/app/output/file.rb
sym-2.4.3 lib/sym/app/output/file.rb