lib/tracksperanto/ext_io.rb in tracksperanto-3.3.12 vs lib/tracksperanto/ext_io.rb in tracksperanto-3.3.13
- old
+ new
@@ -4,13 +4,12 @@
# importer you need to wrap the incoming input with it yourself (that is, an IO passed
# to the import module will NOT be wrapped into this already)
#
# io = ExtIO.new(my_open_file)
# io.gets_non_empty #=> "This is the first line after 2000 linebreaks"
-#
-class Tracksperanto::ExtIO < DelegateClass(IO)
+class Tracksperanto::ExtIO < Tracksperanto::IOWrapper
def initialize(with)
- __setobj__ with
+ @backing_buffer = with
end
# Similar to IO#gets however it will also strip the returned result. This is useful
# for doing
# while non_empty_str = io.gets_and_strip