class Burner::Library::IO::OpenFileBase
Common configuration/code for all IO
Job
subclasses that open a file.
Attributes
binary[R]
disk[R]
path[R]
Public Class Methods
new(path:, binary: false, disk: {}, name: '', register: DEFAULT_REGISTER)
click to toggle source
Calls superclass method
Burner::JobWithRegister::new
# File lib/burner/library/io/open_file_base.rb, line 17 def initialize(path:, binary: false, disk: {}, name: '', register: DEFAULT_REGISTER) super(name: name, register: register) raise ArgumentError, 'path is required' if path.to_s.empty? @binary = binary || false @disk = Disks.make(disk) @path = path.to_s freeze end