Class Racket::RacketPart
In: lib/racket/racketpart.rb  (CVS)
Parent: BitStruct

Every Racket object is made up of numerous sub-parts, namely layers of the OSI stack.

Methods

autofix?   fix!   new   pretty  

Attributes

autofix  [RW]  Boolean indicating whether or not this instance should be automatically "fixed" prior to be packed and sent.

Public Class methods

[Source]

# File lib/racket/racketpart.rb, line 45
  def initialize(*args)
    @autofix = true
    super(*args)
  end

Public Instance methods

Should this instance be automatically fixed prior to being packed and sent?

[Source]

# File lib/racket/racketpart.rb, line 41
  def autofix?
    @autofix
  end

[Source]

# File lib/racket/racketpart.rb, line 62
  def fix!
  end

Print out all of the fields and all of their values

[Source]

# File lib/racket/racketpart.rb, line 52
  def pretty
    s  = ""
    self.fields.each do |f|
      unless (f.name == "payload")
        s += "#{f.name}=#{self.send(f.name)} "
      end
    end
    s.gsub(/ $/, '')
  end

[Validate]