Is there a tmpfs kind of solution where I can write into Ruby's memory which only persists until that ruby instance is complete.
File.write('/ruby_tmpfs/path/to/file', 'Some glorious content')
It get consumed in same script like this:
read_file_function_i_cannot_change_which_expects_file_path('/ruby_tmpfs/path/to/file')