Class: Sym::App::Output::File

Inherits:
Base show all
Defined in:
lib/sym/app/output/file.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Sym::App::Output::Base

Instance Method Details

#output_procObject



9
10
11
12
13
14
# File 'lib/sym/app/output/file.rb', line 9

def output_proc
  Sym::App.log :info, "writing to a file #{opts[:output]}"
  ->(data) {
    ::File.write(opts[:output], data)
  }
end