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

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/racketpart.rb, line 41
  def initialize(*args)
    @autofix = true
    super
  end

Public Instance methods

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

[Source]

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

[Source]

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

Print out all of the fields and all of their values

[Source]

# File lib/racketpart.rb, line 47
  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]