Sha256: fed79f069377651a47ea2b4ff837900d3e8d8d24dba180c9e477f59324fcdede
Contents?: true
Size: 378 Bytes
Versions: 5
Compression:
Stored size: 378 Bytes
Contents
module Sublayer module Agents class SaveFileContentsAgent attr_reader :file_contents, :file_path def initialize(file_contents:, file_path:) @file_contents = file_contents @file_path = file_path end def execute File.open(file_path, "w") do |file| file.write(file_contents) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems