Class: Tempfile

Inherits:
Object
  • Object
show all
Includes:
IndentedIO::IndentedIOInterface
Defined in:
lib/indented_io/tempfile.rb

Overview

Includes the IndentedIOInterface that define the #indent method

Note that Tempfile used to be a (kind of) IO but that changed in ruby-2.7. The problem is that we now have to require both StringIO and Tempfile and possible other classes to inject the #indent method instead of just doing it once in the IO class itself. TODO: Find a better solution - probably by implementing a check in Kernel

Method Summary

Methods included from IndentedIO::IndentedIOInterface

#depth, #indent, #tab