class FCGI::GenericDataRecord
Attributes
flagment[R]
Public Class Methods
new(type, id, flagment)
click to toggle source
Calls superclass method
FCGI::Record::new
# File lib/fcgi.rb, line 526 def initialize(type, id, flagment) super type, id @flagment = flagment end
parse(id, body)
click to toggle source
# File lib/fcgi.rb, line 522 def self.parse(id, body) new(id, body) end
Public Instance Methods
empty?()
click to toggle source
# File lib/fcgi.rb, line 533 def empty? @flagment.empty? end
Private Instance Methods
make_body()
click to toggle source
# File lib/fcgi.rb, line 539 def make_body if @flagment.respond_to? 'force_encoding' then return @flagment.dup.force_encoding('BINARY') else return @flagment end end