class CTI::ResourceOut
Public Class Methods
new(io)
click to toggle source
# File CTI/Session.rb 449 def initialize(io) 450 @io = io 451 @closed = false 452 end
Public Instance Methods
close()
click to toggle source
# File CTI/Session.rb 464 def close 465 unless @closed 466 @io.req_eof 467 @cloded = true 468 end 469 end
write(str)
click to toggle source
# File CTI/Session.rb 454 def write(str) 455 e = str.encoding; 456 str.force_encoding(Encoding::ASCII_8BIT) 457 while str.bytesize > 0 458 data = str.slice!(0, CTIP2::CTI_BUFFER_SIZE) 459 @io.req_write(data) 460 end 461 str.force_encoding(e) 462 end