Sha256: f154990e6bb432d451bdcda73a390b8be5ba0e9f26d27dc5b187bff71a8851ff

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 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

10 entries across 10 versions & 1 rubygems

Version Path
sym-2.3.0 lib/sym/app/output/file.rb
sym-2.2.1 lib/sym/app/output/file.rb
sym-2.2.0 lib/sym/app/output/file.rb
sym-2.1.2 lib/sym/app/output/file.rb
sym-2.1.1 lib/sym/app/output/file.rb
sym-2.1.0 lib/sym/app/output/file.rb
sym-2.0.3 lib/sym/app/output/file.rb
sym-2.0.2 lib/sym/app/output/file.rb
sym-2.0.1 lib/sym/app/output/file.rb
sym-2.0.0 lib/sym/app/output/file.rb