Sha256: 633879bede1fc2dac0d37c219c1896d7194101e3316fed9c877321f4bce2317f
Contents?: true
Size: 440 Bytes
Versions: 7
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true module Nocode module Steps module Io # Read a file from disk and place its contents in a register. class Read < Step option :path, :register def perform data = File.read(path) registers[register_option] = data end private def path File.join(*array(path_option)) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems