Sha256: c85f719e4e86fe8a1a55dc4c0c525bf8ec4a481db7f877a3af275da052ed9a42
Contents?: true
Size: 644 Bytes
Versions: 5
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true module Vedeu module Renderers # Writes the given output to a file. # class File include Vedeu::Renderers::Options # @return [String] def clear render('') end # Render the output (either content or clearing) to a file. # # @return [String] def write data = content ::File.write(filename, data) data end private # @return [String] def content output end # @return [Boolean] def write_file? true end end # File end # Renderers end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems