class TurboRex::CStruct::FieldsProxy

Attributes

count[R]
name[R]

Public Class Methods

new(name) click to toggle source
# File lib/turborex/cstruct.rb, line 287
def initialize(name)
  @name = name
  @count = 1
  @point_to = nil
end

Public Instance Methods

[](count) click to toggle source
# File lib/turborex/cstruct.rb, line 293
def [](count)
  @count = count.to_i

  self
end
point_to(cstruct) click to toggle source
# File lib/turborex/cstruct.rb, line 303
def point_to(cstruct)
  @point_to = cstruct
end
to_s() click to toggle source
# File lib/turborex/cstruct.rb, line 299
def to_s
  @name.to_s
end